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
toconfig.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
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 &
To keep the tweets file to a manageable size, use logrotate.
Edit logrotate.conf
and link to it from /etc/logrotate.d