Git Product home page Git Product logo

covid-19-notifier's Introduction

covid-19-notifier

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.

color_isolation_gif

Table of contents

1. Description

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:

2. Getting started

2.1 Dependencies

Concerning covid-19-notifier_test.py:

  • Tested on macOS Catalina version 10.15.7
  • Python 3.6

2.2 Installing

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.

2.3 Executing program

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.

3. Version history

  • 0.1
    • Initial release

covid-19-notifier's People

Contributors

antho1426 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.