- Python 3 (not sure if works with 2)
pip install -r requirements.txtCreate a file named config in this directory, paste in the following skeleton, and fill out (no spaces, trailing characters):
AccessToken=
AccessTokenSecret=
ApiKey=
ApiKeySecret=
python3 scrape.py (create|resume) --helpfor more information about usage.
To summarize, the create command will start a new data set in directory data/{SET_NAME}. The resume command will reference an existing data set, pulling the existing cursors and resuming the original request when the set was created.
Note: Hashtags don't require # character as a prefix to make it easier in bash environments
python3 scrape.py create mytestset TheKidFromAkron 3 # get tweets from the last 3 days including this hashtagpython3 normalize to-csv --helppython3 normalize to-csv data mytestset