CLI TOOL that fetches twitter user/tweet search API data and outputs to csv
These instructions will get you a copy of the project up and running on your local machine.
git clone https://github.com/vaulstein/twitterApiForHumans.git
cd twitterApiForHumans
pip install -r requirements.txt
Create an app on twitter on the following link: App on twitter
After creating your app, you will find the App keys on the link: https://apps.twitter.com/app/{ API KEY }/keys
Run the following command:
python quickstart.py
On running the script you would be asked a set of questions that would help in fetching the required data
> Your Application's Consumer Key(API Key)? Found here: https://apps.twitter.com/
> Your Application's Consumer Secret(API Secret)? Found here: https://apps.twitter.com/app/{ Your API}/keys
> Your Access Token? Found here: https://apps.twitter.com/app/{ Your API}/keys
> Your Access Token Secret? Found here: https://apps.twitter.com/app/{ Your API}/keys
> Fetch Tweet Data or User Data? 1/Tweet 2/User [2] ( Type 1 for tweet search, 2 for User search)
Based on your selection you would be asked a few questions for the search parameters.
The different search parameters can be found here: Query parameters
The first question is the query parameter, where you can use different operators to search data
For fetching Tweet search data, the below is an example of questions:
The last question would be the name of the output file you would want to write to. If you specify the same file name as the last, remember to take a backup.
Remember twitter API is rate limited. Rate limits for tweet search are 450/15 minutes. Rate limits for user search are 900/15 minutes.
Please read CONTRIBUTE.md for details on our code of conduct, and the process for submitting pull requests to us.
- VAULSTEIN RODRIGUES - Initial work - Blog
This project is licensed under the MIT License - see the LICENSE.md file for details