A simple .NET 6 console application which periodically watches specific HTML elements on the web.
Only works for static websites which rely on server-side page rendering.
This project was originally a request and now also serves as a small introduction to .NET 6.
This project runs on .NET 6. If dotnet --version
returns a version number < 6, install the .NET 6 Runtime from here.
The entire application is constructed from a TOML configuration file named app.cfg
(See TOML language specs here if desired).
Each webpage and its HTML element that shall be watched is referred to as a Job
.
Jobs are continuously executed in periodic intervals.
XPath Syntax is used to identify the HTML page element whos content shall be watched.
app.cfg
is not contained in this repository for security reasons.
To get started, copy the provided demo-app.cfg
file and rename it to app.cfg
.
The demo file is well commented and intended to be used as reference.
This is a .NET 6 project (SDK can be downloaded here).
Build and run the project on the CLI with dotnet run
.
TBC.
- Tomlyn by Alexandre Mutel (BSD-2)
- HtmlAgilityPack by ZZZ Projects (MIT)
- Microsoft.Data.Sqlite by Microsoft (MIT)
- MailKit by Jeffrey Stedfast (MIT)