Python >= 3.5
pip
git clone https://github.com/pbellon/tw.git
cd tw
pip install -r requirement.txt
cd lib/
mv env.sample.py env.py
Then edit env.py to add the proper key & secrets. To obtain them visit twitter apps and create an app if necessary.
usage: python tw.py [-h] [--retweets] [--timeline]
Small utility to retrieve tweets as JSON from twitter api.
optional arguments:
-h, --help show this help message and exit
--retweets Get user latest retweets
--timeline Get user timeline (limited)
Exemple:
$> py tw.py --retweets > my_latest_retweets.json