Skip to content

Latest commit

 

History

History
42 lines (38 loc) · 1.32 KB

README.org

File metadata and controls

42 lines (38 loc) · 1.32 KB

Fowlstream

A command line utility for streaming tweets using rules. Based on Twitter’s Filter Stream API.

Installing

Fowlstream was written for Python 3.8. Other versions may work but no guarantees.

pip install 'aiohttp[speedups]'

Credentials

You’ll need a Twitter Developer account.

Usage

export TWITTER_ACCESS_TOKEN=<token>
export TWITTER_ACCESS_SECRET=<secret>

./fowlstream.py list-rules  # should return nothing
./fowlstream.py set-rule dogs "(dog OR puppy) has:image -is:retweet -is:quote"
./fowlstream.py list-rules  # should see your new rule

To watch the stream:

./fowlstream.py watch

Or if you’d like to save the data later for processing in some other way

./fowlstream.py stream >> rainy_day_pictures.json

Be sure to check out the built-in documentation

./fowlstream.py --help