imbstt / impf-progress-bot

The script that ran the (now defunct) impf_progress Twitter account, tweeting German vaccination updates
MIT License
18 stars 2 forks source link
covid-19 impfdashboard twitter

Impfstatus Fortschritt Twitter Bot

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

Script Setup

# 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

Crontab Setup

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

Data Source

The script uses data from Deutschland_Impfquoten_COVID-19.csv, provided by the Robert Koch-Institut under CC-BY 4.0 International.

License

All source code and documentation in this repository is licensed under the MIT license.