Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.11 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.11 KB

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