A Selenium bot for obtaining an appointment at the Ausländerbehörde
or Bürgerämt
in Berlin.
Watch this video Hinter verschlossenen Türen – Mysterium Ausländerbehörde - ZDF Magazin Royale to understand more about the agency's issues.
- Python 3.6+ :
brew install python3
- pip3 :
brew install pip3
git clone https://github.com/amalrajvinoth/berlin-termin-bot.git
- Search for the Telegram bot named
@botfather
, who will assist you in creating and managing your bot. - Type and send
/help
to see all the available commands thatbotfather
can execute. - To create a new bot, type
/newbot
or click on it. - Congratulations! You've successfully created your Telegram bot. An API token will be generated for it.
- To get telegram
CHAT_ID
created in previous step, run the following command:
curl https://api.telegram.org/bot<API_TOKEN>/getUpdates
- Generate a
.env
file from sample file.env.sample
# LEA / Ausländerbehörde Configuration
LEA_NATIONALITY=Indien
LEA_NUMBER_OF_PERSON=drei Personen
LEA_LIVING_IN_BERLIN=ja
LEA_NATIONALITY_OF_FAMILY_MEMBERS=Indien
LEA_VISA_CATEGORY=Aufenthaltstitel - verlängern
LEA_FAMILY_REASON_CATEGORY=Erwerbstätigkeit
LEA_FAMILY_REASON=Aufenthaltserlaubnis für Fachkräfte mit akademischer Ausbildung (§ 18b)
# APT / Bürgerämt configuration
APT_DATE_RANGE_ENABLED=True
APT_DATE_RANGE_END=21.06.2024
# Telegram
TELEGRAM_API_TOKEN=<Your_Telegram_API_Token>
TELEGRAM_CHAT_ID=<Your_Telegram_Chat_ID>
- Setup a virtualenv via
sudo virtualenv venv
and activate it. - Install dependencies via
sudo pip3 install -r requirements.txt
- Put the latest version of
chromedriver
binary into this repository directory- Download suitable
chromedirver
for your OS from here - Add
chromedriver
to PATH:echo 'export PATH=$PATH:<chromedriver_path>' > ~/.profile
- Download suitable
- Configure
lea_berlin_bot.py
according to your needs - see Configuration and Support Section - Start the bot via
lea_berlin_bot.sh
chmod +x lea_berlin_bot.sh
./lea_berlin_bot.sh
- Configure
apartment_berlin_bot.py
according to your needs - see Configuration and Support Section - Start the bot via
apartment_berlin_bot.sh
chmod +x apartment_berlin_bot.sh
./apartment_berlin_bot.sh
You can read the selenium docs and adjust lea_berlin_bot.py
or apartment_berlin_bot.py
in order to configure it according to your needs.
By default, lea_berlin_bot
looks appointment for Residence permit for spouses parents and children of foreign family members (§§ 29-34)
for 3 person
from India
.
If you need different nationally and number of people adjust the configuration in .env
file as explained in Configuration section
Download the new version of chrome driver from here refer section
I would like to express our sincere gratitude to the original creator of this project:
AGPL-3.0