Skip to content

Repository files navigation

Twitter Stream

An application that constantly monitors one or more keywords.

This runs on UNIX or Cygwin. Tested on Python 2.7. Earlier versions might work.

  • pip install TwitterAPI
  • Copy config.json.sample to config.json
  • Edit config.json to fill the API keys, search filters, and the location of the file to save.

Run:

nohup ./run.sh config.json &

Note: You need to use a different application for each connection

Followers

You can track the followers' network of the users in a twitter stream. Edit the config.json file to have a followers entry like this:

"followers": {
    "source": "tweetfile.json",     // Same as save_tweets
    "target": "followers.json"      // Desired output file
}

Then run:

nohup ./run_followers.sh config.json &

Log rotation

To keep the tweets file to a manageable size, use logrotate. Edit logrotate.conf and link to it from /etc/logrotate.d

About

A Websocket interface for the Twitter streaming API

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages