Scrapes Pararius rental objects, stores links in Azure Table Store and sends a Telegram Message to a Group chat for new properties
- Install requirements:
pip install -r requirements.txt
- Change modules/.ENV-example to modules/.ENV
- Edit modules/config.yml to your likening (based on pararius.com)
- Create an Azure Table Store and add the connection string as environment variable
AZURE_TABLES_CONNECTION_STRING
in /modules/.ENV - Create a Telegram Bot and add the token as environment variable
TELEGRAM_BOT_TOKEN
in /modules/.ENV - Add the Telegram Bot to a Group chat and get the group chat ID (starts with a '-' sign)
- Add the Chat ID to
TELEGRAM_CHAT_ID
environment variable in /modules/.ENV - Run
python app.py
- sudo apt install chromium-browser
- Change modules/.ENV-example to modules/.ENV
- Edit modules/config.yml to your likening (based on pararius.com)
- Install requirements:
pip install -r requirements.txt
- Create an Azure Table Store and add the connection string as environment variable
AZURE_TABLES_CONNECTION_STRING
in /modules/.ENV - Create a Telegram Bot and add the token as environment variable
TELEGRAM_BOT_TOKEN
in /modules/.ENV - Add the Telegram Bot to a Group chat and get the group chat ID (starts with a '-' sign)
- Add the Chat ID to
TELEGRAM_CHAT_ID
environment variable in /modules/.ENV - Install chromium browser using
sudo apt install -y chromium-browser chromium-chromedriver
- Run in command line:
python app.py
- Install Docker
- Change modules/.ENV-example to modules/.ENV
- Edit modules/config.yml to your likening (based on pararius.com)
- Create an Azure Table Store and add the connection string as environment variable
AZURE_TABLES_CONNECTION_STRING
in /modules/.ENV - Create a Telegram Bot and add the token as environment variable
TELEGRAM_BOT_TOKEN
in /modules/.ENV - Add the Telegram Bot to a Group chat and get the group chat ID (starts with a '-' sign). Find it using https://api.telegram.org/bot/getUpdates
- Add the Chat ID to
TELEGRAM_CHAT_ID
environment variable in /modules/.ENV - Run in command line:
docker built -t pararius:latest .
- Run in command line:
docker run pararius:latest
-
Include environment-values in ACI using Azure KeyVault for example
-
Ensure logging in every file is done correctly (also in main-example code snippet at the end of the file)
-
Include tests
-
Create CI/CD-process & think about OTAP-street for application (higher interval in OTA and lower in P (?) )
-
Check if line 8 in init.py can be removed
-
Surpress Response Header logging for Azure Tables Requests
-
Update documentation
-
Write documentation about pre-commit hooks