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

View File

@ -7,30 +7,30 @@ MAINTAINER kev <noreply@easypi.pro>
RUN set -xe \
&& apk add --no-cache ca-certificates \
build-base \
libffi-dev \
libxml2 \
libxml2-dev \
libxslt \
libxslt-dev \
openssl-dev \
python3 \
python3-dev \
&& python3 -m pip install appdirs \
build-base \
libffi-dev \
libxml2 \
libxml2-dev \
libxslt \
libxslt-dev \
openssl-dev \
python3 \
python3-dev \
&& python3 -m pip install appdirs \
cssselect \
keyring \
lxml \
minidb \
pyyaml \
requests \
urlwatch \
&& apk del build-base \
libffi-dev \
keyring \
lxml \
minidb \
pyyaml \
requests \
urlwatch \
&& apk del build-base \
libffi-dev \
libxml2-dev \
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
View File

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