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

Multiple instances of the script simultaneously for different locations #81

Closed sreevathsa closed 3 years ago

sreevathsa commented 3 years ago

I need to book slots in 2 cities where family members are spread out. Can I run multiple instances of the script from the same directory? In such a setup, despite keying in the captcha, I get the unauthenticated access/token invalid error as below. Is it related to running two instances of the script?

======================= ATTEMPTING BOOKING ========================== Booking Response Code: 401 Booking Response : Unauthenticated access! TOKEN INVALID Token is INVALID.

Also, a related question for the instance of the script that doesn't throw the error above - for 1 open slot why does it ask for captcha verification 5-6 times? After every input of the captcha code the server response is: "This vaccination center is completely booked for the selected date." Is this expected?

sreevathsa commented 3 years ago

Note that the unauthenticated access/invalid token error is in one of the two instances and not both. And also it doesn't show up consistently.

sreevathsa commented 3 years ago

Also, I am using the same phone number in both the instances.

bombardier-gif commented 3 years ago

You can link different numbers for different locations and run them.

Also for the "This vaccination center is completely booked for the selected date." it just means that someone else is faster in booking :|