Skip to content

Periodically checks if a websites content changed. Then sends post request to a discord webhook endpoint.

License

Notifications You must be signed in to change notification settings

Z3n1thic/website_change_detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

website_change_detection

Checks if a websites content changed. Then sends post request to a discord webhook endpoint. Can be executed periodically using cronjob.

Usage

  1. Create a discord webhook
  2. Create .env file and add webhook URL with key WEBHOOK_URL
  3. Create monitor.json file and configure monitored websites

Example Configs

.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": ""
    }
]

Run

pip3 install -r requirements.txt
python3 main.py

About

Periodically checks if a websites content changed. Then sends post request to a discord webhook endpoint.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages