![]() You can specify a threshold for saying how many single-character changes you want to actually be considered a change (maybe some webpages will display the current time at the right bottom, which you want to ignore - if time is displayed like 6:45 pm than a theshold of at least 5 would result in ignoring these changes). If there was a difference you will be notified via an e-mail. The script is very simple and works in a way that it visits a website, saves the entire HTML code into a local file and compares its contents to the potentially new page contents at the next visit. Another application could be watching on the postal service's shipment tracking or the like. ![]() ![]() I made it for the purpose to repeatedly check a specific webpage where university exam results get published so I get notified almost instantly. If you're interested, please refer to my blog article about "Building a cloud-native web scraper using 8 different AWS services". To parse dynamic, JavaScript-powered websites, like Single Page Apps, you would need a tool like Selenium WebDriver. ![]() Please note: This will only work for static websites, which are completely rendered on the server. This script watches a website, saves its contents to a specified text file, compares this file's contents to the website contents at the next visit and sends an e-mail if there are differences.
0 Comments
Leave a Reply. |