gaurav-210 / Twitterbot

Twitter bot is a terminal application in Python which uses Twitter API and perform the following tasks Retrieve Tweets Count the followers Determine the sentiment Determine location,language and time zone. Compare tweets Analyze top usage Tweet a message

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build A Tweet Bot With Python


What is TwitterBot?

Twitter bot is a terminal application in Python which uses Twitter API and perform the following tasks

  1. Retrieve Tweets
  2. Count the followers
  3. Determine the sentiment
  4. Determine location,language and time zone.
  5. Compare tweets
  6. Analyze top usage
  7. Tweet a message

Why TwitterBot?

This project has great significance in terms of sentiment analysis and comparison of tweets.

In addition to that we can also retrieve the location , language and timezone for the same.


Components of twitterbot

1. Twitter bot requires following things

2. API access token of twitter

3. Client Id and secret

4. Nltk, paralleldots library,tweepy

5. Counters

6. Python requests


Create A Twitter Account


The first step is creating a Twitter account https://twitter.com/signup. Once this is done the next step is to create a new application.


Create a Twitter App


Go to apps.twitter.com and click on 'Create New App ' button

Image of create new app


* Fill out the details of the form correctly

Image of create new app


* Read the developer agreement section, and check the box at the bottom if you agree. Then click on

the ‘Create your Twitter application’ button

Image of create new app


Keys and Access Tokens

In order to post to a Twitter account automatically, you have to get access keys for your account.


After creating your new app, you would be redirected to its own page. If you weren’t, go to apps.twitter.com and click on your app's name.

Image of create new app


On the app’s page, click on the ‘Keys and Access Tokens’ tab

Image of create new app


At the bottom of this page, click on the ‘Create my access token’ button.

Image of create new app


Make sure you make note of the following four keys, as you will need these later.

Image of create new app


Image of create new app


Objectives Achived

  • Get the access token , Client secret and Client Id of the Twitter Api For the developers.

                                        Thankyou                                                
    

About

Twitter bot is a terminal application in Python which uses Twitter API and perform the following tasks Retrieve Tweets Count the followers Determine the sentiment Determine location,language and time zone. Compare tweets Analyze top usage Tweet a message


Languages

Language:Python 100.0%