Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nishidayuya/webupdates

webupdates: A web page update checker command
https://github.com/nishidayuya/webupdates

Last synced: about 1 month ago
JSON representation

webupdates: A web page update checker command

Awesome Lists containing this project

README

        

# `webupdates`: A web page update checker command

## Usage

### with Docker (recommended)

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...
```

### without Docker

If you want to run `webupdates` directly, you must install following:

- [Mozilla Firefox](https://www.mozilla.org/)
- [Geckodriver](https://github.com/mozilla/geckodriver/releases)
- [Ruby](http://www.ruby-lang.org/)
- [webg.gem](https://github.com/nishidayuya/webg)
- `gem install webg`

Copy `webupdates` command to `PATH` environment directory and set executable permission.

Enjoy `webupdates` command:

```
$ webupdates data-name CSS-selector curl-options
```

## Run periodically

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 ...
```