Finds appointments at the Berlin Bürgeramt, broadcasts them via websockets
Project description
Bürgeramt appointment finder
This server looks for Bürgeramt appointment every few seconds. You can make it look for any kind of appointment.
This is the code behind All About Berlin's Bürgeramt appointment finder.
If this tool helped you, make a donation. Building things for Berliners is my full time job.
Setup
1. Install the script
Run this command in your terminal:
# It might be called 'pip3' on your computer
pip install berlin-appointment-finder
You need Python 3 on your computer. If you have macOS or Linux, you already have it. If you have Windows, you're on your own.
2. Find the appointment type you need
Pick a service from the list of services on Berlin.de, and copy the URL. For example, https://service.berlin.de/dienstleistung/120686/
for the Anmeldung.
3. Run the script
Run this command and follow the instructions on your screen:
appointments
The script will check Berlin.de every 3 minutes. When it finds appointments, it lists them. Just keep an eye on the terminal.
Instructions for nerds
This script can be configured with command line arguments or environment variables.
Type appointments --help
to see available command line arguments.
These are the available environment variables:
```bash
BOOKING_TOOL_EMAIL=your@email.com
BOOKING_TOOL_ID=johnsmith-dev
BOOKING_TOOL_URL=https://service.berlin.de/dienstleistung/120686/
```
The script broadcasts broadcasts the appointments it finds with websockets. By default, it broadcasts them on port 80.
A Dockerfile is supplied in this repo. It's the same one I use on All About Berlin.
The polling rate is limited to 180 seconds (3 minutes), as required by the Berlin.de IKT-ZMS team (ikt-zms@seninnds.berlin.de).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file berlin-appointment-finder-1.0.2.tar.gz
.
File metadata
- Download URL: berlin-appointment-finder-1.0.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81181e9dd38a9828b43d0eb2e244fbcf7419d79614bd2337592228ab6197cad2 |
|
MD5 | bf2bdd792a7b1c82241e4b0fa0ecf06b |
|
BLAKE2b-256 | 1aeeccb942dfb9330ba9734bb8ee37c27aa94b9ff763c713b2ed326d42506790 |
File details
Details for the file berlin_appointment_finder-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: berlin_appointment_finder-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d8fe1a57bd2d9b9c9b5ec58b779b26227fefbd0941f8700c44de7eec9ad371e |
|
MD5 | b8c6cba8d59bdeafcace00b919a99165 |
|
BLAKE2b-256 | 8a7c4fc40c3b767f02af94eb08f58bed262188d4a7d69924eaca23a0364fd4f4 |