Subreddit Header Countdown
Update your subreddit header with a countdown!
Run
Change the contents of settings.cfg
to suit your needs. Then run
python header_img_text.py
Add it to Crontab
crontab -e
Use one of these below
* * * * * /usr/bin/python /path/to/script/header_img_text.py # every minute
*/30 * * * * /usr/bin/python /path/to/script/header_img_text.py # every half-hour
0 * * * * /usr/bin/python /path/to/script/header_img_text.py # every hour
0 0 * * * /usr/bin/python /path/to/script/header_img_text.py # every day
Setup dev environment
to setup with conda:
conda env create
to setup with pip / python 2.7.11:
pip install pillow
pip install praw
Test
to test:
cd subreddit_header_countdown
python test/test_img_text.py