Skip to content

pbellon/tw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages