1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 13:58:42 +00:00
dockerfiles/urlwatch/README.md

52 lines
895 B
Markdown
Raw Normal View History

2015-07-07 07:44:11 +00:00
urlwatch
========
2015-07-07 09:06:08 +00:00
[urlwatch][1] is a tool for monitoring webpages for updates.
2015-07-07 08:04:30 +00:00
## docker-compose.yml
2019-05-02 11:34:00 +00:00
```yaml
2015-07-07 08:04:30 +00:00
urlwatch:
image: vimagick/urlwatch
volumes:
2019-05-02 11:34:00 +00:00
- ./data:/root/.urlwatch
2019-05-02 12:22:32 +00:00
restart: unless-stopped
```
## urls.yaml
```yaml
---
url: "https://github.com/thp/urlwatch/releases/latest"
filter:
- xpath: '(//div[contains(@class,"release-timeline-tags")]//h4)[1]/a'
- html2text: re
---
url: "https://github.com/shadowsocks/shadowsocks-libev/releases/latest"
filter:
- css: 'div.f1>a'
- html2text: re
...
```
## up and running
```bash
$ docker-compose up -d
$ docker-compose exec urlwatch sh
>>> urlwatch --test-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
>>> urlwatch --test-filter 2
v3.2.5
>>> exit
2015-07-07 08:04:30 +00:00
```
2019-05-02 11:34:00 +00:00
[1]: https://thp.io/2008/urlwatch/