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

Not Working For Above 45+ 2nd Dose #538

Closed mjishnu closed 3 years ago

mjishnu commented 3 years ago

I was looking for a slot for my mom's 2nd dose when i search it shows 0 center available in the script but when i checked it in the cowin site there was a many centre's available idk why the script shows like this and site shows another. so to check if the script was broken i tried to book a 18+ 1st dose and the script worked fine so i figured that the issue was only for 45+ idk about 1st dose 45+ but there is an issue for 45+ 2nd dose.

I think the issue started in 6th july 2021, it was working fine untill then because i booked a slot for my dad last week and it worked then, i think this started after the cowin site updated its format and made all the centers 18+ instead of 18-44 , 45+ format. I am from kerala, india if region has something to do with this.

any help is appreciated

thanks for the script btw!

Screenshot 2021-07-09 205417

mash40 commented 3 years ago

Even I was trying for the same, were you able to book successfully?

mjishnu commented 3 years ago

nope, i tried again for my mom but i wasn't able to get it , even when the cowin site showed slots available the script showed 0 centers available just like in the screenshot from my first post. it used to work for 45+ 2nd dose but now it doesn't idk why. i think it got to do something with the change in format to 18+ only from 18-44 and 45+, i hope someone finds a way to fix it.

mjishnu commented 3 years ago

I found a solution to the problem and booked a slot successfully!

image

to fix the issue go to src folder and open the utils.py and edit the filter_centers_by_age function

image

change center_age_filter from 45 to 18 in line 417

image

here is the edited utils.py if u want utils.zip

i hope this works for you

mjishnu commented 3 years ago

Even I was trying for the same, were you able to book successfully?

i found a fix try, it worked for me

@mash40

mash40 commented 3 years ago

Even I was trying for the same, were you able to book successfully?

i found a fix try, it worked for me

@mash40

Thanks for your effort, will try and let you know the result.

520rahul commented 3 years ago

@bombardier-gif plz update the repo for solution of this bug

bombardier-gif commented 3 years ago

sure! thanks