twarc

Archive Twitter JSON data and metadata via command-line

brewmacoslinux
Try with needOr install directly
Source

About

Command-line tool and Python library for archiving Twitter JSON

Commands

twarc

Examples

Search for tweets containing a keyword$ twarc search 'python' --output tweets.jsonl
Collect tweets from a specific user's timeline$ twarc timeline username --output user_tweets.jsonl
Hydrate tweet IDs to retrieve full tweet objects$ twarc hydrate tweet_ids.txt --output hydrated.jsonl