Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.03 KB

README.md

File metadata and controls

37 lines (21 loc) · 1.03 KB

Twitter Fetch Replies

What does this do?

This script asks for the tweet ID and the target account, and fetches the replies to that tweet.

Example

If you want to get the replies to this tweet from National Geographic

The ID will be 1667743460990898176 and the account will be NatGeo

Purpose

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

Running the Script

  1. Clone the repo
  2. 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

  1. If you don't have virtualenv installed run $ pip3 install virtualenv
  2. Go to the folder where the repo is, using Terminal
  3. run $ virtualenv --python=python3 .
  4. run $ pip install -r requirements.txt
  5. run $ python3 app.py