A basic bot that:
- Opens up a browser, allowing you to navigate to a particular page
- Repeatedly refreshes the page
- Takes a screenshot each time and compares them for any changes
- Sends a telegram alert whenever a change is found.
Use it for a simple alert system to detect when a change happens on a website.
Tested on Raspiberry Pi running Raspberry Pi OS.
- Create a Telegram bot: https://core.telegram.org/bots#how-do-i-create-a-bot
- Send a message to the bot to create a Chat ID.
- configure in config.yml the TELEGRAM_API_KEY.
- Run the follow install commands
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
playwright install
python3 main.py [path to config.yml]
- Install VNC, optionally, for remote access
sudo raspi-config
# Select Interfacing Options > VNC > Yes