GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - EasyPi/docker-urlwatch: 🔔 Watch changes in webpages and get notified

BranchesTags
Open more actions menu

Latest commit

 

History

33 Commits
33 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
data
data
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

urlwatch

GitHub Actions Workflow Status Docker Image Version urlwatch

urlwatch is a tool for monitoring webpages for updates.

docker-compose.yml

services:
  urlwatch:
    image: easypi/urlwatch
    volumes:
      - ./data:/root/.urlwatch
    environment:
      - EDITOR=/usr/bin/vi
    restart: unless-stopped

urls.yaml

---

name: urlwatch
url: https://github.com/thp/urlwatch/tags
user_visible_url: https://github.com/thp/urlwatch
filter:
- xpath: '(//h4[@data-test-selector="tag-title"]/a)[1]'
- html2text: re
- strip:

---

name: shadowsocks-libev
url: https://api.github.com/repos/shadowsocks/shadowsocks-libev/releases/latest
user_visible_url: https://github.com/shadowsocks/shadowsocks-libev
filter:
- shellpipe: 'jq -r .tag_name'
- strip:

---

name: easypi
url: https://www.nslookup.io/api/v1/records
user_visible_url: https://www.nslookup.io/domains/easypi.duckdns.org/dns-records/#authoritative
method: POST
headers:
  Content-Type: application/json
data: '{"domain":"easypi.duckdns.org","dnsServer":"authoritative"}'
filter:
- jq:
    query: '.records.a.response.answer[0].ipInfo.query'
- re.sub:
    pattern: '"'
    repl: ''

...

up and running

$ docker-compose up -d
$ docker-compose exec urlwatch sh
>>> urlwatch --test-reporter slack
Successfully sent message to Slack
>>> urlwatch --list
1: https://github.com/thp/urlwatch/releases/latest
2: https://github.com/shadowsocks/shadowsocks-libev/releases/latest
3: https://www.nslookup.io/domains/easypi.duckdns.org/dns-records/#authoritative
>>> urlwatch --test-filter 2
v3.3.6
>>> exit

customizing cron schedule

Create a crontab file

*/30 * * * * cd /root/.urlwatch && urlwatch --urls urls.yaml --config urlwatch.yaml --hooks hooks.py --cache cache.db
*/15 * * * * cd /root/.urlwatch && urlwatch --urls urls-every-15m.yaml --config urlwatch.yaml --hooks hooks.py --cache cache.db

See the crontab manpage for details on format.

Mount the crontab file as a docker volume

version: "3.8"
services:
  urlwatch:
    image: easypi/urlwatch
    volumes:
      - ./data:/root/.urlwatch
      - ./data/crontab:/etc/crontabs/root
    restart: unless-stopped

About

🔔 Watch changes in webpages and get notified

Topics

dockerdocker-composeurlwatch

Resources

Readme
Activity
Custom properties

Stars

32 stars

Watchers

1 watching

Forks

5 forks
Report repository

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.