When I was in college, and took an exam, I was really curious if I passed it or not.
The teachers were posting the grades on their faculty page, so I thought about making a script that will “alert” me when the grades got posted.
I’ve remade the python script that I used in college, so that you guys, can also use it, and not only if you’re in college, but for other purposes too.
What does this script actually do ?
It checks if a webpage (URL) got updated or not. You have to give it an url and a delay. The script will download the webpage locally.
After the webpage was downloaded, it will tell you the current md5sum, and ask you if you want to continue (just in case the page was already updated,
so you might have to check that before you run it).
The script script loops “forever” and stops when the md5sum is different than the original md5sum, that was shown to you when you’ve started it.
The script is made in python2.7, and it runs ONLY with python2.7
- Linux operating system (this works also on windows, but you’ll have to adapt it)
- Md5sum (but this comes with most of unix operating system, if not all of them)
You can download the webpage update checker script from this post below (if you’re logged in), or you can download it from here:
python2.7 checker.py -u http://yoursite.com/whatever -d 2
or you can change the scripts permissions, so that you can execute it without python2.7 in front, like this:
sudo chmod +x checker.py
./checker.py -u http://yourwebsite.com/whatever -d 2
This will run the script, for the link http://yourwebsite.com/whatever and, and it will check for an update every two minutes.