twitter-lib-python

Usage

As per Installation doc, activate the virtual environment before running these commands. `

$ source venv/bin/activate

CLI

Note use of unbuffered -u flag in some cases for immediate printing.

Validate credentials

$ make auth

Get tweets of a Twitter user

Using the default.

$ make timeline

Specify a username.

$ make demo-timeline screen_name=BarackObama
$ make trends

Python package API

Get tweets of a Twitter user

TODO: Make this an installable package.

Use the library in your own project.

Load config details:

$ export $(< .env.local | xargs)

Set up a script.

Run it:

$ python main.py