bombardier-gif / covid-vaccine-booking

This very basic script can be used to automate COVID-19 vaccination slot booking on India's Co-WIN Platform.
375 stars 216 forks source link

Script not able to pick the available slots - NO BOOKING ATTEMPT #397

Closed siddharthgoyal90 closed 3 years ago

siddharthgoyal90 commented 3 years ago

@bombardier-gif The latest code main branch is not attempting booking even when slots are open. It just continues to say no options viable…. This is something I am getting from last 2 days now. Any thoughts please? Quite urgent.

apoorvakasbekar commented 3 years ago

@siddharthgoyal90 I am facing the exact same issue.

Nakul93 commented 3 years ago

Are you guys able to see the available centres?

siddharthgoyal90 commented 3 years ago

Yes @Nakul93 It opened once again 30 minutes back. But no luck with the script. Running in same state saying No Viable Options.

Nakul93 commented 3 years ago

Make sure you have selected the right options and confirm that the same is available on cowin portal

siddharthgoyal90 commented 3 years ago

@Nakul93 Cross verified multiple times by selecting right options on script inputs with the corresponding same ones on CoWIN. I was able to book multiple times before 2 days, but since last 2 days (i.e., post using the latest code on main branch) - the booking attempt is not coming through.

See the below screenshot for reference - this is non-stop continuing with the same inspite of the fact that slots were available/ open on CoWIN. Any thoughts? image

Nakul93 commented 3 years ago

Could you try using pincode instead of district

siddharthgoyal90 commented 3 years ago

@Nakul93 I have chose Option 3 - state with pincodes from optimization standpoint only. Is there any other way of using pincodes you are proposing/ recommending?

Nakul93 commented 3 years ago

Choose option 1, which is only for pincode and check if that works.

ernitish commented 3 years ago

Last night at 9.30 i have booked slots with option 1.

siddharthgoyal90 commented 3 years ago

@ernitish @Nakul93 Are we saying that the latest main branch works with Option 1 as of now? I’ve initiated the script with Option 1 - let’s see if it works.

siddharthgoyal90 commented 3 years ago

@Nakul93 Following are the observations:

Thoughts?

Nakul93 commented 3 years ago

Ok not sure if the bug mentioned in #314 was completely fixed. As for booking the slots which are scheduled to open at a particular time, the centres show after some delay (for me it was 15-30secs). Maybe this due to caching as mentioned in the api documentation A trick that might work is to wait for the exact time or wait for the telegram notification before you start searching centres. Also make sure that you haven't logged into the portal via app/web

ghost commented 3 years ago

here the problem is this if we select option 3 , I my case i selected 33 then 3 and then 500004,500033,500034,500038 It does not showing any centers available. I tried for 45+. It doesn't show any centers available . Now i am moving back to option 1 with 4 pincodes . it is running good let it see if it books .

Now with option 1 this issue.

Screenshot 2021-05-30 at 09 16 09
ghost commented 3 years ago

Option 3 with 4 pin codes not showing any centers very difficult to book .

Screenshot 2021-05-30 at 09 22 45
ghost commented 3 years ago

Option 3 working perfectly. i selected 5 centers .Booking confirmed.

Screenshot 2021-05-30 at 12 04 32
pics12456 commented 3 years ago

Nothing works tried option 2 - slots open, doesn't work then option 3 with 5 pincodes, again no then option 1 with 5 pincodes, again no

Nakul93 commented 3 years ago

Try with 3 pincodes or less

pics12456 commented 3 years ago

Acha will start with it now

ghost commented 3 years ago

I Have booked with option 3 and 4 picodes frequency 7 at 18:00 hrs. @pics12456 plz attach some screenshots.

Screenshot 2021-05-30 at 18 37 24
pics12456 commented 3 years ago

@nolimits0007

I had not taken the screenshot then

pics12456 commented 3 years ago

At the moment I have changed it to option 1

rodeoz commented 3 years ago

Was able to book successfully yesterday. Used Option 1 (for pin code only) and chose 2 pin codes with a refresh frequency of 10 seconds.

It missed the slot when I chose Option 3 (district and then sort by pin code). Though to be fair only 7 slots were opened then as opposed to 30 when it picked up.

ghost commented 3 years ago

@nolimits0007

I had not taken the screenshot then But I can explain the scenario

3 - Hyderabad Pin codes: 500003,500004,500082,500004,500033 Frequency :7 I also tried with 10 frequency earlier in the afternoon

The slot AIMSR (Pin:500033) opened at 6:03PM But the script was showing no viable options and continued as normal

I am also entering manual otp so constantly sitting near the system

Please help

@pics12456 Try this Trick. Use option 3. Type 33 then 3 when it comes to pincode use them in ascending order as mentioned below use frequency 7 it will pick slot definitely and something goes wrong take screenshot. Also see if ur going for AIMSR they are only giving COVAXINE & its paid. 500003,500004,500004,500033,500082

Nakul93 commented 3 years ago

My observation is there is always some delay between the slots actually opening up and the script showing those slots. I’ve tried with 1 pincode and still the slots started showing up for me after roughly 30secs after the actual time. Even the telegram bot alerted at the exact time, but the script has some delay. Not sure if has to do with the caching of data as mentioned in the API documentation

pics12456 commented 3 years ago

So is their way out?

ghost commented 3 years ago

My observation is there is always some delay between the slots actually opening up and the script showing those slots. I’ve tried with 1 pincode and still the slots started showing up for me after roughly 30secs after the actual time. Even the telegram bot alerted at the exact time, but the script has some delay. Not sure if has to do with the caching of data as mentioned in the API documentation

In this case i think again download complete from the main code remove the use folder and use new one. Because in Hyderabad i have done booking 2 times today .

ghost commented 3 years ago

So is their way out?

what i replied u can do that way.

pics12456 commented 3 years ago

Yeah. I have set it up with that manner -option 3 pincodes in ascending order

Hope I get the slot

Nakul93 commented 3 years ago

My observation is there is always some delay between the slots actually opening up and the script showing those slots. I’ve tried with 1 pincode and still the slots started showing up for me after roughly 30secs after the actual time. Even the telegram bot alerted at the exact time, but the script has some delay. Not sure if has to do with the caching of data as mentioned in the API documentation

In this case i think again download complete from the main code remove the use folder and use new one. Because in Hyderabad i have done booking 2 times today .

I have had the updated code. I think what you are suggesting is to delete the pycache folder, it won’t really help. The reason you were probably able to book was maybe due to less traffic. There are always a lot of traffic (especially in major cities)when centers have specific slot opening times.

pics12456 commented 3 years ago

It tried booking And i saw this error

Nakul93 commented 3 years ago

@pics12456 Pls add this file in your main directory https://github.com/bombardier-gif/covid-vaccine-booking/blob/main/src/model.txt

pics12456 commented 3 years ago

Done image

Please let me know if this is correct

pics12456 commented 3 years ago

Untitled

Nakul93 commented 3 years ago

Done image

Please let me know if this is correct

This should be fine.

pics12456 commented 3 years ago

Thanks

ghost commented 3 years ago

It tried booking And i saw this error image

image

Earlier u were not getting slots at least u r getting slots now.

what my opinion is that u download main code from site extract it on desktop.

the folder extracted . go to tests folder extract windows exe and the go to windows exe folder.

There run captcha_tests.exe file if u see something like this.

Screenshot 2021-05-30 at 21 04 05

After pressing quit u should see something like this then it will work.

Screenshot 2021-05-30 at 21 04 40

plz do this u will get slot. Happy Vaccination !!!

pics12456 commented 3 years ago

Just booked 3 slots now Thanks for the help @nolimits0007 @Nakul93 and ofcourse @bombardier-gif

rishirawal commented 3 years ago

Did you use option 2 or 3

pics12456 commented 3 years ago

Option 3 Pincodes in ascending manner

ghost commented 3 years ago

Just booked 3 slots now Thanks for the help @nolimits0007 @Nakul93 and of course @bombardier-gif image

I told u that u will do. Try again & again till u succeed . Happy Vaccination !!!

plz help others .

manasisadekar commented 3 years ago

Can anyone confirm which option to use for 2nd Dose at Pune location ? I tried for 1st option 2 and it worked for me, but for 2nd Dose I need confirmation before opening slot for Pune, if option 2 worked for pune.. does it mean that for 2nd dose also it will work ? also anyone tried 2 people at same time ?

BumpyKnuckls commented 3 years ago

Marking this as closed to better track open issues. Please feel free to continue the discussion and consider reopening the issue if required