Skip to content

A script that asks for the tweet ID, the target account, and fetches all replies to that tweet

Notifications You must be signed in to change notification settings

vostpt/Twitter-Fetch-Replies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A script that asks for the tweet ID, the target account, and fetches all replies to that tweet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages