rbignon / doctoshotgun

Script to automatically book a vaccine slot on Doctolib in the next seven days.
GNU General Public License v3.0
549 stars 143 forks source link

Will the script work with the new Doctolib queuing system? #292

Closed zaccharieramzi closed 2 years ago

zaccharieramzi commented 2 years ago

Currently when I run the script I have the following message on loop:

This may take a few minutes/hours, be patient!
[2021-11-25 18:44:35]
No free slots found at selected centers. Trying another round in 5 sec...
[2021-11-25 18:44:40]
No free slots found at selected centers. Trying another round in 5 sec...
[2021-11-25 18:44:45]
No free slots found at selected centers. Trying another round in 5 sec...

...

I tried debugging, and saw that the url being requested ends up on a queuing system.

image

I guess that if we keep pinging this url, it will always fall back at the back of the queue.

Maybe fortunately with the new queuing system this script is not needed anymore, let's see.

hadware commented 2 years ago

Could there be a way of bypassing the queuing system?

skiwlkr commented 2 years ago

Same here for the german doctolib.

zaccharieramzi commented 2 years ago

I ended up being patient and using the official queuing system.

Maxou44 commented 2 years ago

The script stucks with the new queue system, the queue use a cookie, it could be nice to resend the cookie each time we redo a request to progress in the queue

rbignon commented 2 years ago

Hello,

I'm looking how it works and patch doctolib soon to handle the queuing system.

rbignon commented 2 years ago

Ok the queue is now correctly handled. However, I think there are perhaps problems with support of 3rd shot, I'll do some tests later.

skiwlkr commented 2 years ago

Cool! Thanks! I just tried it and it worked for 5 minutes and after that went back to the state like in the first post. I kept it running and after another 10 minutes it got back to working correctly.

It keeps jumping between those two states, but in the end it works and booked an appointment. Thanks!

hadware commented 2 years ago

Worked perfectly for me!