A Tweepy streamer to collect tweets from Twitter's Streaming API based on criteria
Project description
A Tweepy streamer to collect tweets from Twitter’s Streaming API based on criteria, with an extremely simple API
Requirements
You will need the following from Twitter:
CONSUMER_KEY
CONSUMER_SECRET
ACCESS_KEY
ACCESS_SECRET
For this you can visit https://apps.twitter.com to setup the access keys
Install
pip install tweetstreamer
Usage
For example if you want to listen for tweets about $AAPL stocks
from tweetstreamer import auth, listen connection = auth(<CONSUMER_KEY>, <CONSUMER_SECRET>, <ACCESS_KEY>, <ACCESS_SECRET>) listen(connection, <TRACK>, on_status, on_error, on_timeout, on_disconnect)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tweetstreamer-1.0.3.tar.gz
(1.2 kB
view hashes)