mmaguero / tweets-downloader

Download tweets by API or SNScrape

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tweets-downloader

Download tweets by API or SNScrape

Install:

python3 -m venv myVenv
source myVenv/bin/activate
pip install -r requirements.txt

Use:

  • python3 scrape_tweets.py 1 False > outsns_track1.txt for SNScrape
  • python3 scrape_tweets.py 2 True > outsns_track2.txt for API

Output:

  • SNScrape, a CSV.
  • API, jsonl (one line per tweet).

TO-DO:

  • Add params for since, until for SNScrape, now hard-coded.
  • Add params for track list keywords, now hard-coded.

About

Download tweets by API or SNScrape

License:MIT License


Languages

Language:Python 100.0%