1itromio / cowin-vaccine-booking

9 stars 5 forks source link

Please add option to check multiple pincodes #3

Open hpk22 opened 3 years ago

ManojMadanmohan commented 3 years ago

It looks like this is unsupported by the API: https://apisetu.gov.in/public/api/cowin#/Appointment%20Availability%20APIs/calendarByPin

not sure if this would be doable

1itromio commented 3 years ago

Yeah it does not support that, However we can save the pincodes in local and try for each alternatively. However this will slow down the polling interval for one pincode considering the rate limit of cowin APIs applicable to individual IP Address. Rather we can use a strategy to switch between mobile network and wifi interface to make the api calls so that the IP addresses differ for api calls and we get a less chance of getting 301