If you have Docker environment, easy to run webupdates
:
$ docker run -it -v $PWD/data:/var/lib/webupdates nishidayuya/webupdates \
data-name CSS-selector curl-options...
If you want to run webupdates
directly, you must install following:
- Mozilla Firefox
- Geckodriver
- Ruby
- webg.gem
gem install webg
Copy webupdates
command to PATH
environment directory and set executable permission.
Enjoy webupdates
command:
$ webupdates data-name CSS-selector curl-options
We can run on Cron.
# In /etc/cron.d/webupdates
# Run webupdates at every 03:12.
12 3 * * * root docker run -it /var/lib/webupdates:/var/lib/webupdates nishidayuya/webupdates ...