Monitor a Website on the Raspberry Pi using Python
This Python script will run on your Raspberry Pi and monitor a website, notifying you when the website either goes down or when a change has been made. We achieve this by storing a simple copy of the website locally and checking to see when the changes differ.
As this website monitor is relatively simplistic, it should be able to run fine, even on a Raspberry Pi Zero. Throughout this guide, we will show you how to program your own script to monitor a website. Using this knowledge, you should be able to expand the script to suit your specific needs.
If you would prefer not to learn how the code works, you can skip to the section titled “Running your Raspberry Pi Website Monitor Periodically“. However, you will need to set some details within the code for email notifications to work.
This project is perfect for a headless Raspberry Pi as it doesn’t require an interface to use it. Even though this guide focuses on the Raspberry Pi, this code will work on any device where Python 3 is available. That means you can even run this script on your Windows device if you like.
Read more: Monitor a Website on the Raspberry Pi using Python