- Python2.7
- tweepy
To install tweepy use pip install tweepy
The client looks for a file called credentials.json
. It should look like this:
{
"ConKey":"<consumerKey>",
"ConSec":"<consumerSecret>",
"AccessToken": "<accessToken>",
"AccessSecret": "<accessTokenSecret>"
}
The .gitignore
file is setup to not commit this files for versioning. It is highly recommended you keep these keys a secret as anyone with access to them can use your app as if they were you.
To get they keys that you need to access Twitter's API:
- Visit
apps.twitter.com
- Login to your twitter account (if not already logged in)
- Click the
Create New App
button - Name your app (must me unique ex. <username>_TwitterPi)
- Give your app a description
- Give your app a homepage
- Use your github repo
- If you don't have one you can use mine
https://github.com/dixonwille/TwitterPi
- Sign your life away by agreeing to the Developer Agreement
- Click
Create your Twitter Application
- Go to the
Permissions
tab and update Access toRead Only
and clickUpdate Settings
- Go to the
Keys and Access Tokens
tab and clickCreate my access token
- Copy these keys and put them into your
credentials.json
file respectively
To run the client it is as simple as python main.py