Bot for the appoiuntments at SuperC for the Ausländerbehörde. Since it is barely possible to get an appointment online, this bot will check the website for available appointments and send you a notification via Telegram.
- Clone the repository
- Install the requirements with
pip install -r requirements.txt - Create a Telegram bot with the BotFather and copy the token to the variable bot_token in scripts/telegram_bot.py
- Start the bot with
python -m scripts.telegram_bot --bot-type RWTH
Recommendation: Use a virtual environment for the installation (python -m venv venv).
If you want to use another implementation, look into tests/test_playwright.py or tests/test_selenium.py. Mark: playwright library is not perfectly suitable for the RaspberryPi 3B+, that is why the main bot is written with requests or selenium.
Install chromedriver:
brew install --cask chromedriver
Install chromedriver on Ubuntu Server RPI3 ARM 64:
sudo apt-get install chromium-chromedriver
Check where is the chromedriver
which chromedriver
Example output /usr/bin/chromedriver
Got to /usr/bin/ and update the rights:
chmod 777 /usr/bin/chromedriver
Eventually maybe restart the RPI.
For more information refer to: