Open hista opened 6 days ago
You did everything correctly. But the URL you provided is missing some parameters, I don't know why. But I already have a smart solution in mind to make it more robust.
Do you mean this idea: https://github.com/jlplenio/doctolib-notifier/issues/2 ? It reminds me this other tool which refers to get-request as well: https://github.com/Schlaurens/doctolib-checker/blob/main/README.md
Exactly. Maybe I can push an update this weekend. The other script is native python, but not use-friendly.
For me the problem is this method supposes to reach a page with a date. Therefore it doesn't work when the practicer has no date to book yet, even a late one.
Should work now for you and french doctolib @hista !
Unfortunately not yet:
poetry run python main.py
Please paste in the URL of the practice:
https://www.doctolib.fr/dermatologue/bordeaux/pierre-boussault?pid=practice-21072
Traceback (most recent call last):
File "/home/hista/doctolib-notifier/main.py", line 107, in <module>
DoctolibNotifier().main(url)
File "/home/hista/doctolib-notifier/main.py", line 94, in main
practice_name, practice_id, motive_ids, practitioner_id = self.parse_initial_url(initial_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hista/doctolib-notifier/main.py", line 24, in parse_initial_url
practice_id = query_params.get('placeId', [""])[0].split("-")[1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
successfully removed temp profile /tmp/uc__5u0w9hj
The problem lies with your URL. You have to navigate to the end of an offer, where it says that there are currently no appointments available. If you give the tool an URL to a page before that, it is not sure which offer you want to search for.
Sorry that makes sense, it works now, thanks! If I may suggest some ideas:
Hi, I tried your script on the French version of doctolib.
Any idea why? Thanks for your kind help :)