Skip to main content

Automate Twitter Stream data collection

Project description

Twistream: Twitter Stream API data collection

CircleCI

Twistream helps you automatically collect and store data from Twitter Stream API.

Installation

From source:

git clone https://github.com/guillermo-carrasco/twistream.git
cd twistream
pip install .

From PyPi:

pip install twistream

Setting up

You need your twitter credentials in order to be able to use Twitter API. For that, create an application here. Once created, create a configuration file and add the credentials there:

~> cat ~/.twistream/twistream.yml      

twitter:                  
  consumer_key: your_consumer_key                   
  consumer_secret: your_consumer_secret             
  access_token_key: your_access_token_key             
  access_token_secret: your_access_token_secret       


backend: backend_name                  

backend_params:
    username: db_username
    password: db_password

Different backends

Right now twistream only supports sqlite, the backend and backend sections in your configuration file should look like this:

backend: sqlite

backend_params:
    db: /path/to/your/db

Usage

Once you have createed the configuration file, just execute:

twistream --hashtags hashtags,to,follow

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

twistream-0.1.tar.gz (8.5 kB view hashes)

Uploaded Source

Built Distribution

twistream-0.1-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

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