A Tweepy streamer to collect tweets from Twitter's Streaming API based on criteria
Project description
tweetstreamer
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.5.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for tweetstreamer-1.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf83c85f08392de4870071b7f805560cf5439c26f0a483e5542b7c0e0a0dad6d |
|
MD5 | 8ab3eb253681d3265d5a7445a3d6ccfe |
|
BLAKE2b-256 | 2c4437e33fdd516053ac1993cd76b07da50f5c63a5acf81c99b205ae8bb88a0f |