https://github.com/stex/url_watcher
Trigger a webhook whenever changes on a website occur
https://github.com/stex/url_watcher
webhook
Last synced: about 1 year ago
JSON representation
Trigger a webhook whenever changes on a website occur
- Host: GitHub
- URL: https://github.com/stex/url_watcher
- Owner: stex
- License: apache-2.0
- Created: 2021-05-16T21:03:36.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-16T21:37:02.000Z (about 5 years ago)
- Last Synced: 2025-03-05T01:31:03.013Z (over 1 year ago)
- Topics: webhook
- Language: Ruby
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# url_watcher
A very simple script / docker image to watch for changes on a web page and
call a webhook on `diff` changes.
Currently doesn't support webhook arguments, simply performs a `POST` request.
## Docker Usage
Simply set the page and webhook URLs as environment variables when running the docker image:
```bash
docker run -t --rm -e PAGE_URL=https://google.com -e WEBHOOK_URL=https://my.webhook.com sterexx/url_watcher
```
or as compose file:
```yaml
version: "3"
services:
app:
image: sterexx/url_watcher
tty: true
environment:
PAGE_URL: https://google.com
WEBHOOK_URL: https://my.webhook.com
restart: unless-stopped
```
## Script Usage
Specify the page to watch and the webhook URL via environment variables:
```bash
PAGE_URL=https://google.com WEBHOOK_URL=https://my.webhook.com ./watcher.rb
```