Application in Python 3 used to extract data from twitter to a csv file that will be used in a data mining project for university: https://github.com/IUTInfoAix/twitMiner/blob/master/Sujet.md
- sudo pip install twitter
OR
- sudo easy_install twitter
Place your credentials and app name in ./twitter_credentials.txt (see ./twitter_credentials.txt.example)
from this directory, run:
- python3 tweet_collector_main.py replaceBySearchQuery 30 50
It will run 30 queries of 50 tweets each
Use \ to protect a hashtag of anything else your shell might interpret
python3 print_rate_limit_status.py
- Fix number of tweets collected when logging after each query (wrong value for last query)
- Extract the country
Inspired by http://tutorials.iq.harvard.edu/twitter
GPLv3