A simple Go program to monitor changes on a specified web page and notify you in the console when changes occur.
- Continuously monitors a specified URL.
- Alerts the user when the HTML content of the page changes.
- Allows customizing the checking interval in seconds.
- Go 1.20+ (or latest version)
- Clone the repository:
git clone https://github.com/Alperosci/SiteChecker.git
cd SiteChecker- Run the program:
go run main.go- Or build it:
go build main.goYou can also download pre-built binaries from the Releases section and run them directly without building from source.
When you start the program, you will be prompted for two inputs:
- URL: The web page you want to monitor.
- Wait time: The checking interval in seconds.
Example:
URL : https://example.com
Wait time (second) : 10
Waiting started
Waiting 10 seconds ...
Waiting 10 seconds ...
A change detected!
- The program first stores the initial HTML content of the page.
- It then repeatedly checks the page at the specified interval.
- If the content changes, it prints
"A change detected!"to the console.
- Fork the repository.
- Commit your changes.
- Submit a pull request.