mi01 / vaccine-booker-berlin Goto Github PK
View Code? Open in Web Editor NEWThis script books automatically a slot on Doctolib in one of the public vaccination centers in Berlin.
License: GNU General Public License v3.0
This script books automatically a slot on Doctolib in one of the public vaccination centers in Berlin.
License: GNU General Public License v3.0
I get an Error: 500 Server Error: Internal Server Error when the script to actually make the booking.
The dry run variant runs fine
I have tried this with a few different users... I can provide more information if necessary.
Traceback (most recent call last):
File "/Users/todd/Downloads/vaccine-booker-berlin-master/booker.py", line 496, in
sys.exit(main())
File "/Users/todd/Downloads/vaccine-booker-berlin-master/booker.py", line 486, in main
if docto.try_to_book():
File "/Users/todd/Downloads/vaccine-booker-berlin-master/booker.py", line 230, in try_to_book
if self.try_to_book_place(profile_id, motive_id, practice_id, agenda_ids):
File "/Users/todd/Downloads/vaccine-booker-berlin-master/booker.py", line 362, in try_to_book_place
'start_date': self.page.get_appointment_start_date(),
File "/Users/todd/Downloads/vaccine-booker-berlin-master/booker.py", line 113, in get_appointment_start_date
return self.doc['appointment']['start_date']
KeyError: 'start_date'
I get a problem on line 442 with patients = docto.get_patients()
, it throws woob.browser.exceptions.ClientError: 401 Client Error: Unauthorized
. I double checked and my credentials are correct. Any idea what might cause this issue?
python3 vaccine-booker-berlin/booker.py --debug booster my-username "my password"
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): www.doctolib.de:443
DEBUG:urllib3.connectionpool:https://www.doctolib.de:443 "GET /sessions/new HTTP/1.1" 503 None
INFO:browser:Response saved to c21c2662ac85486292dbfa94da0a82c8
::: Request blocked by CloudFlare. Try again!
Could not login!
Hey @mi01, der Code sieht wirklich gut aus! Ich habe mich auch zuvor mit dem Code von doctoshotgun beschäftigt. Gibt es bei Ihrem Code eine Möglichkeit statt Impfzentren in Berlin generell die gelisteten Ärzte bei doctolib bezüglich eines Impftermins zu buchen? Und somit auch die Suchstadt ändern?
Viele Grüße!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.