Python app using the Twilio Python API for WhatsApp, the requests
package for Telegram and the Heroku Python script hosting solution to send WhatsApp and Telegram messages once a new article related to COVID-19 is published on the State of Vaud website.
covid-19-notifier
is a Python app running on the Heroku web server that makes use of the selenium
Python package to scrape the web and check every 12 hours if a new article related to COVID-19 has been published on the State of Vaud website. If a new article concerning COVID-19 has effectively been published, a COVID-19 recap WhatsApp and Telegram message is sent to my phone. The message contains some info about the number of new cases and deaths due to
COVID-19 in Switzerland and the web links to the Canton of Vaud website and the COVID-19 news for Switzerland.
To be sure to properly back up important info and COVID-19 statistics, the program consults and updates the dedicated "covid 19 notifier spreadsheet"
Google spreadsheet (situated on my Google Drive in "My Drive > Programmation > Real-TimeNotificationsForCOVID-19Cases"):
Here are other interesting websites regarding the current COVID-19 situation in the State of Vaud:
- Hotline et Informations sur le Coronavirus (for a summary of the directives currently in force in Canton of Vaud)
- CoTrack (for the Canton of Vaud)
Concerning covid-19-notifier_test.py
:
- Tested on macOS Catalina version 10.15.7
- Python 3.6
For testing covid-19-notifier_test.py
, install the required packages by typing following Terminal command at the root of the project:
pip install -r requirements.txt
To deploy the covid-19-notifier
Python web app on the Heroku web server, please refer to the instructions in the _ApproachToHostOnHeroku.rtfd
file situated in the _Resources
folder or feel free to contact me with questions.
The covid-19-notifier_test.py
test script can be run by typing following command at the root of the project:
python3.6 covid-19-notifier_test.py
Concerning the actual web app, once deployed, the app automatically and continuously runs on the Heroku web server.
- 0.1
- Initial release