wirehack7 / supernt_alert

Alert when article at analogue shop is available

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Create a telegram bot: Telegram bot guide
  2. Get your Webhook code
  3. Get your user ID: write to telegram bot @myidbot /getid
  4. 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

About

Alert when article at analogue shop is available

License:MIT License


Languages

Language:Python 100.0%