Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 723 Bytes

README.md

File metadata and controls

39 lines (32 loc) · 723 Bytes

tw.py

Requirements

Python >= 3.5
pip

Installation

git clone https://github.com/pbellon/tw.git
cd tw
pip install -r requirement.txt

Configuration

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

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