Skip to content

A bot to get Berliner Ausländerbehörde or Bürgerämt appointment

License

Notifications You must be signed in to change notification settings

amalrajvinoth/berlin-termin-bot

Repository files navigation

Berlin Termin Bot

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.

Pre-requisites

  • Python 3.6+ : brew install python3
  • pip3 : brew install pip3

Setup

Clone repository

  • git clone https://github.com/amalrajvinoth/berlin-termin-bot.git

Telegram bot creation

  • 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 that botfather 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

Configuration

  • 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

chromedriver

  • 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

Run

LEA / Ausländerbehörde appointment

  • 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

berlin Bürgerämt appointment

  • 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

Configuration and Support

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

Troubleshooting

chromedriver is not compatible with current version of chrome

Download the new version of chrome driver from here refer section

Thanks

I would like to express our sincere gratitude to the original creator of this project:

License

AGPL-3.0

About

A bot to get Berliner Ausländerbehörde or Bürgerämt appointment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published