Worker script to run periodically for logging twitter interactions around a set of keywords.
Link data is pushed to a Github gist, where it can be easily accessed from e.g. web-based data visualizations. Tweet and user data are stored locally. To get started:
- Clone this repository.
- Create a gist on GitHub. It should only contain a dummy file (e.g. a short description of the dataset).
- Enter the
datafolder and do
git remote add origin <path_to_gist>.git.
- Cache github credentials:
git config --global credential.helper "cache --timeout=<seconds>".
git pull origin masterto get the dummy file from the gist. Type in your credentials.
- Enter a
screensession on a server.
- Execute the
worker.pyscript with language and tag arguments. Example:
python worker.py --tags obama,trump --langs en,da.