boscorp / Website-Change-Notifier

This C# console application monitors a specified website for changes. It periodically sends HTTP requests to the given URL and checks if the content of the website has changed. If a change is detected, it prints a message to the console. The URL of the website to monitor and the time interval between checks are provided as command-line arguments.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Website Change Notifier

This is a simple C# console application that monitors a specified website for changes. It uses the HttpClient class to make HTTP requests to the website and compares the current content of the website with the previous content to detect changes.

The application accepts two command-line arguments: the URL of the website to monitor and the time interval in milliseconds between checks. If the content of the website changes, the application will call the NotifyChange() method, which prints a message to the console.

Usage

dotnet run [URL] [Interval]

Example

dotnet run https://example.com 5000

This will monitor the website at https://example.com and check for changes every 5 seconds.

Limitations

Please note that this application is very basic and may not work correctly with websites that dynamically change their content with JavaScript. Also, this application does not handle errors, so it could fail if the website is not available or if there is some other network problem.

About

This C# console application monitors a specified website for changes. It periodically sends HTTP requests to the given URL and checks if the content of the website has changed. If a change is detected, it prints a message to the console. The URL of the website to monitor and the time interval between checks are provided as command-line arguments.


Languages

Language:C# 100.0%