Skip to content

A python script for finding free slots for vaccination in cowin website

License

Notifications You must be signed in to change notification settings

tamojit-123/win-cowin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

win-cowin

As all Indians are frustrated with the vaccine situation in India and missing out booking of vaccine slots.

This is a simple python script which uses the Cowin website APIs and tells if there are any free slots available for booking at a particular district.

You can run the script on the terminal and it notifies you of a free slot with an audible speech saying "SLOTS AVAILABLE" and also a terminal log.

You can then open https://selfregistration.cowin.gov.in/ and book the open slots there at the particular location

NOTE: This script doesn't book a slot for you. It's only for notifying you if there is a slot available at the moment

Usage

  1. Clone the script in your local system using
    git clone https://github.com/rishavmedhi/webrtc-basic.git

  2. In the script, change the code at the following places to customise the script as per your needs:

    Change Place to be searched

    districtIds = [265, 294]

    Add the district ids of the districts you wish to search the slots.

    Change Age

    By default, you can search slots only for 18+
    You can also edit this line to find slots for age 45+

      if session['available_capacity']>0 and session['min_age_limit']==18:

    Change session['min_age_limit']==45 to search slots for age 45+

  3. Install the following packages using pip for running the script:

  4. Open the terminal in the project directory and run the script using the following command:
    python3 win-cowin.py

  5. Script uses python scheduler library which calls the main function again after a minute.

Known Issues

  • The local system is to be active for the script to work. If the system goes to sleep, the script will not work

About

A python script for finding free slots for vaccination in cowin website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%