Analogue shop alerting
This script will alert you via Telegram if an article of the Analogue shop is available.
Usage (Linux)
Create a virtual Python environment (Debian/Ubuntu):
sudo apt install python3-venv
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Copy config.ini.dst
to config.ini
. Edit this file.
Run it
python main.py
Check alerting.log
Run in background
There are several ways to run a script in background on Linux. You might try these:
python main.py &
Or:
nohup python main.py &
Or via systemd service. Or init.d. Or any other way you might find.
Telegram bot
- Create a telegram bot: Telegram bot guide
- Get your Webhook code
- Get your user ID: write to telegram bot @myidbot
/getid
- Start bot communication with sending
/start
to your bot
Web checking
Additionally the file check.php
got included. You may use it on your webserver where also this Python script is running to check the status of the script.
Contribute
Feel free to fork, edit or request pulls.
Credits
This script has been created mainly for the awesome Dennsen86 community!
wirehack7 = wepeelis