This is a simple Java program that will help you to book COVID appointment.
It requires Java 8.
Just run bellow command and follow instrcutions:
It requires you to enter captcha manually before sending booking request. so wait for beep sound.
1. you need to find out district id of the targeting area. (easy for tech folks. just use developer mode in browser. screenshot attached)
2. you need to enter OTP manually (you will hear 2 beep sound) every time session expires (15 mins)
3. you need to enter captcha (you will hear 5 beep sound) when slot is available in Popup (you will get 4-5 captcha window if it fails to book.)
---------------------------
Follow these steps to run:
---------------------------
git clone https://github.com/onlynishant/covid-slot-booking.git
cd covid-slot-booking
mvn package
// for weekly search
java -cp "target/dependency/*:target/CowinHelp-1.0-SNAPSHOT-jar-with-dependencies.jar" Runner
// for daily search [NEW and fast]
java -cp "target/dependency/*:target/CowinHelp-1.0-SNAPSHOT-jar-with-dependencies.jar" Runner2
Please install maven: https://maven.apache.org/install.html
How to find district ID:
- Go to https://www.cowin.gov.in/home
- Open
developer mode
in Browser and move toNetwork
tab - Select
Search By District
and then selectstate
andDistrict
and hit Search - You will able to see URL like below image
Pro Tips: You can direclty enter all the user input in code itself so that every time you run the program (in some case every 15 mins because of new session expiry limit), you just need to enter OTP.