https://github.com/suddi/tweetstreamer
A PyPy module to stream tweets accessing Twitter's streaming API based on input criteria (https://pypi.python.org/pypi/tweetstreamer)
https://github.com/suddi/tweetstreamer
pypi python twitter twitter-streaming-api
Last synced: 5 months ago
JSON representation
A PyPy module to stream tweets accessing Twitter's streaming API based on input criteria (https://pypi.python.org/pypi/tweetstreamer)
- Host: GitHub
- URL: https://github.com/suddi/tweetstreamer
- Owner: suddi
- License: mit
- Created: 2016-09-24T15:24:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T09:24:50.000Z (about 2 years ago)
- Last Synced: 2025-02-25T08:46:45.007Z (over 1 year ago)
- Topics: pypi, python, twitter, twitter-streaming-api
- Language: Python
- Homepage: https://pypi.python.org/pypi/tweetstreamer
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tweetstreamer
[](https://circleci.com/gh/suddi/tweetstreamer)
[](https://www.codacy.com/app/suddir/tweetstreamer)
[](https://pypi.python.org/pypi/tweetstreamer)
[](https://pypi.python.org/pypi/tweetstreamer)
[](https://github.com/suddi/tweetstreamer)
[](https://github.com/suddi/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(, , , )
listen(connection, , on_status, on_error, on_timeout, on_disconnect)
````