melchiorb / doctoshotgun

Script to automatically book a vaccine slot on Doctolib for today or tomorrow, following rules from the French Government.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DOCTOSHOTGUN

This script lets you automatically book a vaccine slot on Doctolib for today or tomorrow, following rules from the French Government.

Python dependencies

  • woob
  • cloudscraper
  • dateutil
  • termcolor

How to use it

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]

Development

Running tests

 $ pip install -r requirements-dev.txt
 $ pytest test_browser.py

About

Script to automatically book a vaccine slot on Doctolib for today or tomorrow, following rules from the French Government.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%