This script lets you automatically book a vaccine slot on Doctolib for today or tomorrow, following rules from the French Government.
- woob
- cloudscraper
- dateutil
- termcolor
Install dependencies:
pip install -r requirements.txt
Run:
./doctoshotgun.py <city> <email> [password]
For example:
$ ./doctoshotgun.py paris roger.philibert@gmail.com
Password:
::: Trying to find a slot in Centre de Vaccination Covid 19 - Ville de Paris
::: Best slot found: Mon May 17 11:00:00 2021
::: Second shot: Fri Jun 25 15:20:00 2021
::: Booking for Roger Philibert...
::: Booking status: True
::: Booked!
You can also look for slot in multiple cities at the same time. Cities must be separated by commas.
Run:
./doctoshotgun.py <city1>,<city2>,<city3> <email> [password]
$ pip install -r requirements-dev.txt
$ pytest test_browser.py