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.

Source Distribution

tweetstreamer-1.0.5.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

tweetstreamer-1.0.5-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2 Python 3

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

Hashes for tweetstreamer-1.0.5.tar.gz
Algorithm Hash digest
SHA256 4939fdd1e48967cb7b391e10170983a16d71547affce441e07e2d1c888629c0b
MD5 d8ae0c181340b01818b28515c884de28
BLAKE2b-256 97c5510fde81020a618ff433ccb51a7bd3be7298964ef8e8fcb7783145bb47e2

See more details on using hashes here.

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

Hashes for tweetstreamer-1.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cf83c85f08392de4870071b7f805560cf5439c26f0a483e5542b7c0e0a0dad6d
MD5 8ab3eb253681d3265d5a7445a3d6ccfe
BLAKE2b-256 2c4437e33fdd516053ac1993cd76b07da50f5c63a5acf81c99b205ae8bb88a0f

See more details on using hashes here.

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