1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00

update urlwatch

This commit is contained in:
kev 2019-05-09 17:18:05 +08:00
parent 0eec95749f
commit 9ddf89139a
2 changed files with 25 additions and 19 deletions

@ -30,7 +30,7 @@ RUN set -xe \
libxslt-dev \
openssl-dev \
python3-dev \
&& echo '*/30 * * * * urlwatch' | crontab -
&& echo '*/30 * * * * cd /root/.urlwatch && urlwatch --urls urls.yaml --config urlwatch.yaml --hooks hooks.py --cache cache.db' | crontab -
VOLUME /root/.urlwatch
WORKDIR /root/.urlwatch

6
urlwatch/data/hooks.py Normal file

@ -0,0 +1,6 @@
#!/usr/bin/env python3
import re
from urlwatch import filters
from urlwatch import jobs
from urlwatch import reporters