Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mskian/webpage-content-monitor
A simple and efficient tool to monitor any webpage and receive instant alerts when content changes.
https://github.com/mskian/webpage-content-monitor
api bulma changes content-monitor css express html jaavscript json monitor monitoring monitoring-tool typescript webpage-monitor website-content-monitor
Last synced: 9 days ago
JSON representation
A simple and efficient tool to monitor any webpage and receive instant alerts when content changes.
- Host: GitHub
- URL: https://github.com/mskian/webpage-content-monitor
- Owner: mskian
- License: mit
- Created: 2024-12-17T14:20:05.000Z (11 days ago)
- Default Branch: main
- Last Pushed: 2024-12-18T06:17:51.000Z (10 days ago)
- Last Synced: 2024-12-18T07:23:42.273Z (10 days ago)
- Topics: api, bulma, changes, content-monitor, css, express, html, jaavscript, json, monitor, monitoring, monitoring-tool, typescript, webpage-monitor, website-content-monitor
- Language: TypeScript
- Homepage:
- Size: 196 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 📡 Webpage Content Monitor: Track Changes Instantly
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```sh
pnpm install
```- Development
```sh
pnpm dev
```- Build a Project
```sh
pnpm build
```- Start the server
```sh
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
```sh
mkdir -p data
touch monitored_urls.json
```- Add Square brackets to the JSON File
```json
[]
```- Done
## API Usage
- Add URL
```sh
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
```sh
curl -X POST http://localhost:6026/api/monitor/trigger \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'
```- View All Monitored URLS
```sh
curl http://localhost:6026/api/monitor
```## LICENSE
MIT