Skip to main content

A Tweepy streamer to collect tweets from Twitter's Streaming API based on criteria

Project description

tweetstreamer

CircleCI Codacy Badge PyPI PyPI PyPI license

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.

Files for tweetstreamer, version 1.0.5
Filename, size File type Python version Upload date Hashes
Filename, size tweetstreamer-1.0.5-py2.py3-none-any.whl (3.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size tweetstreamer-1.0.5.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page