This script books automatically a slot on Doctolib in one of the public vaccination centers in Berlin.

Overview

BOOKING IN BERLINS VACCINATION CENTERS

This python script books automatically a slot on Doctolib in one of the public vaccination centers in Berlin. The source code is based strongly on doctoshotgun. It requires python 3.7 or higher.

Python dependencies

How to use it

Install dependencies:

pip install -r requirements.txt

Run:

python3 booker.py <email> [password]

By default AstraZeneca vaccine is excluded. You can include it with --astrazeneca or -az. You can also restrict the search period, by defining the start date with --start-date <yyyy-mm-dd> (default value is the current date) and the amount of days after the start date with --time-window <days> (by default 14 days).

Excluding certain vaccination centers is possible, e.g. --exclude-tempelhof. All options can be printed using the -h flag.

usage: booker.py [-h] [--debug] [--start-date START_DATE] [--time-window TIME_WINDOW] [--astrazeneca] [--exclude-arena] [--exclude-tempelhof] [--exclude-messe] [--exclude-velodrom] [--exclude-tegel] [--exclude-eisstadion] username [password]

Book a vaccination slot on Doctolib in Berlin

positional arguments:
  username                      Doctolib username
  password                      Doctolib password

optional arguments:
  -h, --help                    show this help message and exit
  --debug, -d                   show debug information
  --start-date <yyyy-mm-dd>     Start date of search period (yyyy-mm-dd)
  --time-window <days>          Length of the search period in of days after the start date
  --astrazeneca, -az            Include AstraZeneca vaccine
  --exclude-arena               Exclude center at Arena Berlin
  --exclude-tempelhof           Exclude center at Flughafen Tempelhof
  --exclude-messe               Exclude center at Messe Berlin
  --exclude-velodrom            Exclude center at Velodrom Berlin
  --exclude-tegel               Exclude center at Flughafen Tegel
  --exclude-eisstadion          Exclude center at Erika-Heß-Eisstadion
You might also like...
Telegram bot that search for the classrooms status of the chosen day and then return all the free classrooms using your preferred time slot
Telegram bot that search for the classrooms status of the chosen day and then return all the free classrooms using your preferred time slot

Aule Libere Polimi Since the PoliMi site no longer allows people to search for free classrooms this bot was necessary! It simply search for the classr

A Python script that exports users from one Telegram group to another using one or more concurrent user bots.

ExportTelegramUsers A Python script that exports users from one Telegram group to another using one or more concurrent user bots. Make sure to set all

Telegram bot to check availability of vaccination slots in India.

cowincheckbot Telegram bot to check availability of vaccination slots in India. Setup Install requirements using pip3 install -r requirements.txt Crea

Tools to download and aggregate feeds of vaccination clinic location information in the United States.

vaccine-feed-ingest Pipeline for ingesting nationwide feeds of vaccine facilities. Contributing How to Configure your environment (instructions on the

Benachrichtigungs-Bot für das niedersächische Impfportal / Notification bot for the lower saxony vaccination portal

Ein kleines Wochenend-Projekt von mir. Der Bot überwacht die REST-API des niedersächsischen Impfportals auf freie Impfslots und sendet eine Benachrichtigung mit deinem bevorzugtem Service. Ab da gilt leider: der Schnellste gewinnt. Bitte missbraucht den Bot nicht und verwendet moderate Intervalle.

Extrait les informations contenues dans le code QR de la preuve de vaccination générée par le gouvernement du Québec
Extrait les informations contenues dans le code QR de la preuve de vaccination générée par le gouvernement du Québec

DecodeurPreuveVaccinationQC Extrait les informations contenues dans le code QR de la preuve de vaccination générée par le gouvernement du Québec Utili

Decode the Ontario proof of vaccination QR code

Decode the contents of the Ontario Proof of Vaccination (the "Smart Health Card QR Code") Output This is from my QR code, hopefully fully redacted alt

A Telegram bot that scrapes websites for available vaccination appointments to notify users. (German)
A Telegram bot that scrapes websites for available vaccination appointments to notify users. (German)

@dachau_impf_bot 🇬🇧 A Telegram bot to check the contents of https://termin.dachau-med.de for available slots and inform users of the available dates

A simple bot that looks for names and cpfs in the vaccination list made available by the government Fortaleza - CE

A simple bot that looks for names and cpfs in the vaccination list made available by the government Fortaleza - CE

Comments
  • 401 Client Error: Unauthorized

    401 Client Error: Unauthorized

    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?

    opened by matko031 5
  • start_date error on all runs...

    start_date error on all runs...

    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'

    opened by tmsrlabs 4
  • Andere Städte und Ärzte

    Andere Städte und Ärzte

    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!

    opened by Lorold 4
  • Request blocked by CloudFlare

    Request blocked by CloudFlare

    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!
    
    opened by rekado 2
Owner
null
CoWIN Vaccination slot booking telegram bot with auto captcha resolver & alerting feature.Now, never miss a slot.

COWIN VACCINATION SLOT AUTO BOOKING (Bot with captcha solving & alerting capabilities. Never miss the vaccine slot.) June-10-2021/ 0030 hrs: 23 succes

Shashank Bafna 17 Nov 12, 2022
A Python Script to automate searching of available vaccination centers in the city and hence booking

Cowin Vaccine Availability Notifier Cowin Vaccine Availability Notifier takes your City or PIN code as an input and automatically notifies you via ema

Jayesh Padhiar 7 Sep 5, 2021
A Python Script to automate searching of available vaccination centers in the city and hence booking

Cowin Vaccine Availability Notifier Cowin Vaccine Availability Notifier takes your City or PIN code as an input and automatically notifies you via ema

Jayesh Padhiar 7 Sep 5, 2021
This very basic script can be used to automate COVID-19 vaccination slot booking on India's Co-WIN Platform.

COVID-19 Vaccination Slot Booking Script This very basic CLI based script can be used to automate covid vaccination slot booking on Co-WIN Platform. I

null 605 Dec 14, 2022
A site devoted to celebrating to matching books with readers and readers with books. Inspired by the Readers' Advisory process in library science, Literati, and Stitch Fix.

Welcome to Readers' Advisory Greetings, fellow book enthusiasts! Visit Readers' Advisory! Menu Technologies Key Features Database Schema Front End Rou

jane martin 6 Dec 12, 2021
VaccineAlarm is a simple python script that allows user to get notified when their desired vaccine doses are available at vaccine centers near them.

Introduction VaccineAlarm is a simple python script that allows user to get notified when their desired vaccine doses are available at vaccine centers

Ankit Tripathi 5 Nov 26, 2021
Experiment to find the best time to look for an appointment at the Berlin Bürgeramt

Bürgeramt appointment experiment Checks Berlin.de for free Anmeldung appointments every X minutes, then analyses the results. How to use Run get-page.

Nicolas Bouliane 42 Jan 2, 2023
One version package to rule them all, One version package to find them, One version package to bring them all, and in the darkness bind them.

AwesomeVersion One version package to rule them all, One version package to find them, One version package to bring them all, and in the darkness bind

Joakim Sørensen 39 Dec 31, 2022
Tracker to check the covid shot slot availability in India and send mobile alerts via Twilio Messaging Service.

Cowin-Slot-Tracker Tracker to check the covid vaccine slot availability in India and send mobile notifications through Twilio Messaging Service. Requi

invalid username 27 Nov 12, 2022
Telegram Bot to check covid vaccine slot availability on CoWin site

Cowin Assist Telegram Bot Check the bot here @cowinassistbot. This is a simple Telegram bot to Check slots availability Get an alert when slots become

null 32 Jun 21, 2022