Skip to main content

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

Project description

Codacy Badge 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.

Source Distribution

tweetstreamer-1.0.3.tar.gz (1.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page