Many of us have already experienced troubles while booking vaccine slots in CoWin site due to the variation in the time of updation of slots in different Health care centers. Its difficult for common individual to sit infront of computer and check for slots throghout the day.
This python script will help people to overcome this issue by identifying slots when it opens and notifying the concerned person by whatsapp and audio.
- Uses Public API provided by API Setu to get the information regarding health care centers and vaccines with pincode as filter
- Sends request to API with the frequency mentioned by user and checks for vaccine availability at all pincodes for 18+ age group
- Sends automatic whatsapp message to required person using PyWhatKit package with pre-defined text to the phone number mentioned during script running (Laptop must be connected to whatsapp web)
- Uses chime package to generate sound notification in laptop when it sends the whatsapp message
git clone https://github.com/yshastri66/CoWin-Vaccine-Checker.git
2. Create a new python environment and install the requirments using requirements.txt file by executing following commands :
conda create -n env_name
conda activate env_name
pip install -r requirements.txt
python3 cowin_main.py
Snapshots of the script outputs are below: