Skip to content

Latest commit

 

History

History
48 lines (42 loc) · 3.15 KB

README.md

File metadata and controls

48 lines (42 loc) · 3.15 KB

CoWin Vaccine Checker

Python 3.9.5 API Setu Python 3.9.5 Python 3.9.5

Problem statement:

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.

Key features:

  • 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

Steps to run the script:

1. Clone this repository by downloading zip or by running following command in Git or terminal :

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

3. Run cowin_main.py file using following command and enter the valid inputs :

python3 cowin_main.py

Snapshots of the script outputs are below:

Code snippet running
terminal

Automatic whatsapp web opening and typed text terminal

Automatic message sending
terminal

Feel free to contact me incase on any quaries :-

Yashodhara Shastri G
E-mail : [email protected]