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
data
folder and dogit init
andgit remote add origin <path_to_gist>.git
. - Cache github credentials:
git config --global credential.helper "cache --timeout=<seconds>"
. - Do
git pull origin master
to get the dummy file from the gist. Type in your credentials. - Enter a
screen
session on a server. - Execute the
worker.py
script with language and tag arguments. Example:python worker.py --tags obama,trump --langs en,da
.