cowin-vaccination-slot-availability icon indicating copy to clipboard operation
cowin-vaccination-slot-availability copied to clipboard

Some Questions and Feedback

Open HarshNarayanJha opened this issue 3 years ago • 0 comments

Hello @bhattbhavesh91, I saw your cowin-vaccination-slot-availability script. I had the same problem of booking for slots. Whenever I saw that a slot of our nearest center was empty, and went to ArogyaSetu to book it, I ran out of time and it was booked.

The main problem was that we had to refresh the page at www.cowin.gov.in an select the state and city every time to see the updated available slots. And this action, probably took some time. Then after that getting and OTP, and the typing it in, this wasted time and therefore, empty slots were booked before I book them. This continued for 2 days after then I searched on Google to find a solution for quickly booking slots. I found some sites like vaccinateme and getjab, and many more like that which would WhatsApp or Email me whenever an empty slot was found in my area. I was really amazed and curious about how these did it. (BTW, it didn't send me any email or WhatsApp me yet, I did this 4 days before)

Then I searched how to track empty slots in Python, I got some github results, and the first was, obviously, yours. One thing I was really amazed by was the API of Cowin. I tried it, and it really worked (but after a bunch of trials and errors). Then finally, using requests (for, I suppose you know why) and rich (for coloured and pretty printing in console) libraries. Using my laptop every time just to check empty slots wasn't possible for me, so I am using Pydroid app for android to run Python scripts.I really got information about the centers near me and their available capacity. I furthed filtered it down to if min_age == 18 and if available_capacity > 0 and also if name in LIST_OF_PREFERRED_CENTERS to match my needs and see only data what I need.

And this really helped me and on 3rd day, I booked it.

I saw your Readme and came to know that you are going to implement certificate downloading and Booking via script. But I saw on API description that the booking one is protected API and the certificate one needed to verify OTP. I did not understand both of them.

So, if you have idea how to do that, or if you are going to implement these, please let me know, or more helpful, explain me if possible.

Thanks, Harsh

HarshNarayanJha avatar May 14 '21 06:05 HarshNarayanJha