Welkin Mauritius is one of the vaccination centers available across Mauritius. They use Acuity Scheduling for their vaccination appointment booking system.
Unfortunately they do not provide a way of automatically notifying people whenever appointments are available for booking. If you are a busy person and want to know when you can book an appointment, you are probably out of luck. They only way to know is to frequently visit their site.
This is a basic pupeteer script which monitors Welkin Mauritius vaccination scheduling website for specific vaccination appointments available in specific vaccination centers.
- Monitor for vaccines at given intervals
- Detect active vaccination schedules for a specific vaccine
- Detect active vaccination schedules available in a specific region
- Send an SMS via Twilio to notify of available vaccines
- A Twilio account to send messages when active schedules are found
- Rename
.env.local
to.env
and fill in the relevant details - Update
nameOfVaccine
andvaccinationCenterRegion
inindex.js
to specify the vaccine and region you want to monitor
I wrote this script with the intent of running it on my raspberry pi.
If you intend to do the same, or use it on a system running linux, make sure you have Chromium installed
- Run
sudo apt-get install chromium-browser
to install the latest version of Chromium - Set
raspberryPi = true
inindex.js
;
Doing so will make Puppeteer use Chromium default installation path, which is /usr/bin/chromium-browser
If your Chromium installation is found somewhere else, then you need to specify it
let browser = await puppeteer.launch({
headless: false,
devtools: false,
executablePath: raspberryPi ? '/usr/bin/chromium-browser' : undefined,
args: ['--no-sandbox', '--incognito']
});
By default the script runs every 300000 miliseconds (5 minutes)