CyrielleAlbert / vaccilib

Get a notification on Discord for any Vaccine appointment available near you

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vaccilib

Get a notification on Discord for any Vaccine appointment available near you

Installation

Put the script wherever you want on your server and create a Python VirtualEnv to run it :

  • Go into the deployment folder : cd {my_deployment_folder}
  • Create the virtual env : python3 -m venv venv
  • Activate the virtual env : source ./venv/bin/activate
  • install the dependency : pip install requests

Configuration

To configure properly the script, you should edit the config section in Vaccilib.py (with a valid Discord Webhook and some Doctolib's information (see below) and the vaccilib.sh script to add the absolute path to your deployment folder.

Configure the doctolib_lookup field :

Actually the script need a little bit of help to know where to look on doctolib; In order to provide the needed information, follow these steps :

Feel free to add more than a single center in the script as it will run through the whole doctolib_lookup array

Run the script

sh ./vaccilib.sh

Automate the script

When everything is in place, you may want to automate this script;

I personnaly just added it to crontab with the following steps :

  • Change the chmod of the bash script : chmod +rx vaccilib.sh
  • Open the crontab : crontab -e
  • and add the following line at the end of the file : */5 * * * * /apps/Vaccilib/vaccilib.sh

Save it and you're done. with that configuration, the script will run every 5 minutes.

About

Get a notification on Discord for any Vaccine appointment available near you


Languages

Language:Python 97.5%Language:Shell 2.5%