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
Python 100.00%
twitterbot's Introduction
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
Retrieve Tweets
Count the followers
Determine the sentiment
Determine location,language and time zone.
Compare tweets
Analyze top usage
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
* Fill out the details of the form correctly
* Read the developer agreement section, and check the box at the bottom if you agree. Then click on
the ‘Create your Twitter application’ button
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.
On the app’s page, click on the ‘Keys and Access Tokens’ tab
At the bottom of this page, click on the ‘Create my access token’ button.
Make sure you make note of the following four keys, as you will need these later.
Objectives Achived
Get the access token , Client secret and Client Id of the Twitter Api For the developers.