Skip to content

A simple and efficient tool to monitor any webpage and receive instant alerts when content changes.

License

Notifications You must be signed in to change notification settings

mskian/webpage-content-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📡 Webpage Content Monitor: Track Changes Instantly

build-test

A simple and efficient tool to monitor any webpage and receive instant alerts when content changes.

Note

I primarily built this tool for personal use, and I mostly run it on my home server or localhost. I use Tasker to trigger the URL monitor. This tool is not recommended for production use, as it lacks additional security layers such as header authentication, API keys, or token methods to prevent unauthorized access. However, you are welcome to fork the project and make any changes as needed.

Setup

  • Download or Clone the repo
  • install dependencies
pnpm install
  • Development
pnpm dev
  • Build a Project
pnpm build
  • Start the server
pnpm start

Routes

  • / - Static Home Page for add, trigger and get all urls from database
  • /api/monitor - API for all operations

Database

  • Create Folder Named data and create a JSON file to store the URL and Content to Monitor the changes
mkdir -p data
touch monitored_urls.json
  • Add Square brackets to the JSON File
[]
  • Done

API Usage

  • Add URL
curl -X POST http://localhost:6026/api/monitor \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'
  • Trigger URL to watch the content update
curl -X POST http://localhost:6026/api/monitor/trigger \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'
  • View All Monitored URLS
curl http://localhost:6026/api/monitor

LICENSE

MIT