Please add/change REGISTERED_MOBILE_NUMBER, Beneficiaries_Ids, DOSE, VACCINE and PINCODES as per your choice before following below steps.
Requirements: Python 3 and requests library
Steps:
-
execute book.py script using
python book.py
commandYou should see below output
sending otp.......... OTP SENT SUCCESSFULLY Transaction ID: {'txnId': 'b09b5a70-f381-43ae-8393-88c638af5f3e'} Press y/Y to continue if you received OTP. Press n/N to retry. Max Retry limit:3 ===>
-
Once you get OTP on your registered number then press
y
orY
and thenenter
key to continue. You will see log message like shown below.Enter OTP received on 1234567890:
Enter the OTP and press
enter
key -
If you don't get OTP within 3 minutes then press
n
orN
and thenenter
key to retry. Limit is 3. If you don't get OTP in 3 trials then script will terminate itself.
-
-
Once you enter correct OTP you will see below message.
OTP SENT SUCCESSFULLY Transaction ID: {'txnId': 'b09b5a70-f381-43ae-8393-88c638af5f3e'} Press y/Y to continue if you received OTP. Press n/N to retry. Max Retry limit:3 ===>y Enter OTP received on 1234567890: 380906 OTP SUCCESSFULLY VERIFIED
-
After successfull login, Script will iterate over given PINCODES and will try to book appointment directly where slots are availble to book. It is important to specify only desired PINCODES. Script won't ask you to choose center/slots/vaccine or any of the parameter. **
-
Once script finds the available slot, it will automatically download captcha in
svg.html
file. Script will ask you to enter the captcha and pressenter
. Thesvg.html
file will be present under current working directory. Please note capcha is case sensitive .If you enter captcha correctly then you will get log message as belowScheduled Successfully.
Note:
This script will only help you to book the slot using given PINCODES if slots are available. If slots are already full script will stop automatically.
This Script will book appointment for next day by default. If you wish to change this behaviour you can edit DATE variable in config.py
Script is tested for both 18-44 and 45+ group for first dose only. It is very basic script. Use it on your own risk. Various vaccine availability notification scripts are available, this project is easy to integrate with such notification scripts.