A Python script to automatically check for modifications to websites of interest. The script can notify of changes via the OS notification system (Linux systems only).
-
Clone the repository:
git clone https://github.com/MattiaFerrarini/Web-Update-Checker.git -
Navigate to the project directory:
cd Web-Update-Checker -
Install the required dependencies:
pip install -r requirements.txt
List the URLs of the websites you'd like to monitor on separate lines in urls.txt (located in the project directory).
https://example-1.com
https://example-2.edu
To manually run the check:
python3 webUpdateChecker.py
To automatically run the check repeatedly when the computer is on, you can use cron and the provided checkStarter.sh script.
-
Add the path to your project folder to
checkStarter.shby modifying the line:cd "path/to/your/folder" -
Make
checkStarter.shexecutable:chmod +x /path/to/checkStarter.sh -
Open the crontab file for editing:
crontab -e -
Set up a cron job to run the script at your desired interval. For example, to run the script every hour, add the following line to your crontab:
0 * * * * /path/to/checkStarter.sh