Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 28 days 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T09:24:50.000Z (6 months ago)
- Last Synced: 2024-10-09T09:45:36.241Z (30 days 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
[![CircleCI](https://circleci.com/gh/suddi/tweetstreamer.svg?style=svg)](https://circleci.com/gh/suddi/tweetstreamer)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a3fbed333f5e4d43b6be56a000ea42ca)](https://www.codacy.com/app/suddir/tweetstreamer)
[![PyPI](https://img.shields.io/pypi/v/tweetstreamer.svg?maxAge=2592000)](https://pypi.python.org/pypi/tweetstreamer)
[![PyPI](https://img.shields.io/pypi/wheel/tweetstreamer.svg)](https://pypi.python.org/pypi/tweetstreamer)
[![PyPI](https://img.shields.io/pypi/implementation/tweetstreamer.svg)](https://github.com/suddi/tweetstreamer)
[![license](https://img.shields.io/github/license/suddi/tweetstreamer.svg?maxAge=2592000)](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_SECRETFor 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, listenconnection = auth(, , , )
listen(connection, , on_status, on_error, on_timeout, on_disconnect)
````