Skip to content

com4/fowlstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Filter and follow the Twitterverse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages