Skip to content

This script reads tweets filtered by hashtags and stores the new tweets in a CSV file.

License

Notifications You must be signed in to change notification settings

arijitmondal-94/twitter-data-scraping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Data Scraping

Description

This is a simple script to fetch tweets unsing Twitter API based on hashtag_phrase. The hashtags can be added in the .env file including fields for API keys. This script writes all the data fetched in .csv file. It does not query historical data.

How do I run it?

  1. Add twitter API keys and hashtags in the .env file

  2. Install dependencies from requirments.txt

> python3 -m pip install -r requirements.txt 
  1. then as simple as running the script
> python3 tweet_scraper.py 
  1. To run it in detached shell [OPTIONAL]
> nohup python3 tweet_scaper.py &

About

This script reads tweets filtered by hashtags and stores the new tweets in a CSV file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages