Skip to content

Instantly share code, notes, and snippets.

View varun160490's full-sized avatar

Varun varun160490

  • India
View GitHub Profile
@varun160490
varun160490 / cowin_vaccination_autobooking.js
Last active June 29, 2021 12:38
Working script to book a vaccination slot on console as soon as a slot opens up in https://selfregistration.cowin.gov.in/
// This javascript code will alert you and immediately book the slot whenever a slot opens up on the given date within the given pincodes.
// **** THIS SCRIPT IS TO MAKE NEW BOOKING FOR DOSE 1 OR DOSE 2. IN CASE OF RESCHEDULE, FIRST CANCEL THE BOOKING AND THEN TRY TO BOOK USING THIS SCRIPT. ****
// **** RUN SCRIPT 5 MINUTES BEFORE THE SLOT OPENING TIME. IF THE SESSION IS EXPIRED (EXPIRES IN 10-15 MINUTES), LOG IN AND RERUN THE SCRIPT. ****
// Steps to use
// 1. Update pincodes,age,district_id,beneficiaries,dose,vaccine & vaccine_date.
// 2. Login to https://selfregistration.cowin.gov.in/
// 3. Right Click on the website
// 4. Click on Inspect
@varun160490
varun160490 / cowin_vaccination.js
Last active June 9, 2021 06:07
Working script to get vaccine availability alert on console as soon as a slot opens up in https://selfregistration.cowin.gov.in/
// This javascript code will alert you whenever some slot opens up on the given date within the given pincodes.
// This script will run every 2 seconds and check for availability of slots.
// Steps to use
// 1. Update pincodes,age,district_id,vaccine & vaccine_date.
// 2. Login to https://selfregistration.cowin.gov.in/
// 3. Right Click on the website
// 4. Click on Inspect
// 5. Switch to the Console Tab on the recently opened Inspect window
// 6. Copy paste the contents of this entire file - cowin_vaccination.js