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

About

Small utility to use twitter api

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages