This is the code that runs the account @impf_progress on Twitter, tweeting German vaccination updates with an ASCII-art style loading bar, inspired by @year_progress.
▓▓▓▓▓▓▓▓▓▓░░░░░ 70,0% mind. eine Impfdosis
▓▓▓▓▓▓▓▓▓▓░░░░░ 67,5% vollständig Geimpfte
▓░░░░░░░░░░░░░░ 4,6% Booster Geimpfte
DRY_RUN
to yes
if you just want to test the script without actually sending any tweets# Create venv
py -3 venv venv
# Activate venv: Windows
venv\Scripts\activate.bat
# Activate venv: Linux / MacOS
source venv/bin/activate
# Install tweepy directly
pip3 install tweepy
# Alternatively, use requirements.txt
pip install -r requirements.txt
The script can now simply be called like this:
python bot.py
# or
py -3 bot.py
Running a cronjob with virtualenv:
0 12 * * * cd /home/you/impf-progress-bot/ && /home/you/impf-progress-bot/venv/bin/python /home/you/impf-progress-bot/bot.py
The script uses data from Deutschland_Impfquoten_COVID-19.csv, provided by the Robert Koch-Institut under CC-BY 4.0 International.
All source code and documentation in this repository is licensed under the MIT license.