Covid-19 Vaccine Slots Availability Notifier - India
Vaccine slots are getting booked within the time you blink your eyes. You can't expect it to be available by the time you receive SMS or Email alert. Here, you get the alerts by system pop-up alerts with sound and more information directly on your terminal within the seconds slots get open. Also, you can get results by dose number as well.
It is a schedule based task runner to get notified when vaccine slots are available in provided district(s) or pincode(s). It uses public APIs provided by cowin.
This script is written based on my need. you're welcome to modify as per yours. :) Hope this helps someone!
Install Nodejs if not there already
npm i
npm start // Looks for the pincode(s)
npm run start:dist // For district(s)
Default it checks in every 3 seconds. you can modify the time in the code as per your need.
// Basic Filters
const AGE = 18;
const DATE = "15-05-2021";
const DOSE = 2;
// Other Options
const type = process.env.TYPE || "pincode"; // Find slots by "pincode" or "dist"
const PINCODES = ["360004"];
const DISTRICT_IDS = [775]; //Rajkot Corp
const SCHEDULE = "*/3 * * * * *"; // Every 3 seconds
SOUND_ALERT = true; // More detail on https://www.npmjs.com/package/node-notifier
List of districts and it's ids are under data > district-ids.txt
file.