cd workspaceDirectory
git clone https://github.com/jemshit/Py2DeathWatcher.git
cd Py2DeathWatcher
- Create file
files/twitter_api_secrets.toml
with content:
TWITTER_API_KEY_PY2WATCHER = 'twitter developer api key'
TWITTER_API_SECRET_KEY_PY2WATCHER = 'twitter developer api secret key'
-
App uses OS-User default
crontab
file to schedule jobs. If you want to use custom crontab file:a. Replace
CronTab(user=True)
withCronTab(user=None, tabfile=TAB_FILE)
b.
USER_CRONTAB_ENABLED = True
c. Replace
self.cron.write_to_user()
withself.cron.write(TAB_FILE)
d. In terminal,
crontab workspaceDirectory/Py2DeathWatcher/files/cron_jobs.tab
-
pip3 install virtualenv
-
virtualenv venv
-
source venv/bin/activate
-
pip3 install -r requirements.txt
-
chmod +x src/app.py
(to create files) -
python3 src/app.py
If everything goes well, it will send first tweet and schedule the next tweet job.