This script asks for the tweet ID and the target account, and fetches the replies to that tweet.
If you want to get the replies to this tweet from National Geographic
The ID will be 1667743460990898176 and the account will be NatGeo
This script was developed as a part of a toolkit to classify tweets in diverse use cases, such as emergencies, disinformation, and online hate speech
- Clone the repo
- Create a config.ini file in the same folder with the following structure
[Twitter]
ConsumerKey = your_consumer_key
ConsumerSecret = your_consumer_secret
AccessToken = your_access_token
AccessSecret = your_access_secret
- If you don't have virtualenv installed run $ pip3 install virtualenv
- Go to the folder where the repo is, using Terminal
- run $ virtualenv --python=python3 .
- run $ pip install -r requirements.txt
- run $ python3 app.py