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 details)
Built Distribution
File details
Details for the file tweetstreamer-1.0.5.tar.gz
.
File metadata
- Download URL: tweetstreamer-1.0.5.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4939fdd1e48967cb7b391e10170983a16d71547affce441e07e2d1c888629c0b |
|
MD5 | d8ae0c181340b01818b28515c884de28 |
|
BLAKE2b-256 | 97c5510fde81020a618ff433ccb51a7bd3be7298964ef8e8fcb7783145bb47e2 |
File details
Details for the file tweetstreamer-1.0.5-py2.py3-none-any.whl
.
File metadata
- Download URL: tweetstreamer-1.0.5-py2.py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf83c85f08392de4870071b7f805560cf5439c26f0a483e5542b7c0e0a0dad6d |
|
MD5 | 8ab3eb253681d3265d5a7445a3d6ccfe |
|
BLAKE2b-256 | 2c4437e33fdd516053ac1993cd76b07da50f5c63a5acf81c99b205ae8bb88a0f |