/WebMonitor

A CLI that monitors web page changes and pushes notifications through Wechat

Primary LanguageJavaScript

WebMonitor-CLI

A CLI that monitors web page changes and pushes notifications through Wechat

Install

npm install webmonitor-cli -g

or

yarn global add webmonitor-cli

Before use

webmonitor config 

or

wmcli config

Usage

webmonitor run -u https://baidu.com

or

wmcli run -u https://baidu.com

Examples

Continuous monitoring of https://baidu.com with an interval of 5 seconds:

wmcli run -u https://baidu.com -d -i 5

Log mode

wmcli run -u https://baidu.com -l

Notified by Wechat

wmcli run -u https://baidu.com -w

Options

Usage: run -u <target url> [options]

Options:
 -u --url <url>                 monitoring target
 -l, --log                      log mode (default: false)
 -i, --interval <delay>         the interval between initiating a web request in seconds (default: 60)
 -D, --debug                    debug mode (default: false)
 -d, --daemon                   monitor whether to continue after the change of the web page is detected (default: false)
 -M, --mode <operation mode>    currently local only (choices: "local", default: "local")
 -m, --method <request method>  current get only (choices: "get", default: "get")
 -r, --retry <retry time>       retry times limit (default: 5)
 -w --wechat                    enable Wechat push notification
 -h, --help                     display help for command