Checks if a websites content changed. Then sends post request to a discord webhook endpoint. Can be executed periodically using cronjob.
- Create a discord webhook
- Create .env file and add webhook URL with key WEBHOOK_URL
- Create monitor.json file and configure monitored websites
.env file:
WEBHOOK_URL=https://canary.discord.com/api/webhooks/{id}/{token}
monitor.json file:
[
{
"name": "Eschenlaube",
"url": "https://eschenlaube.at/veranstaltungen",
"html_class": "et_pb_row et_pb_row_1",
"html_tag": "div",
"html_id": ""
},
{
"name": "Miles Jazz",
"url": "https://www.milesjazz.at/",
"html_class": "css-events-list",
"html_tag": "div",
"html_id": ""
}
]
pip3 install -r requirements.txt
python3 main.py