快速、零配置的 Web 端点变化监控器。用于比较响应,会将选定的 HTTP 标头列表和完整响应体存储在本地键值存储文件中。无需配置。
--worker 标志允许设置监控时的并发数。--headersOnly 可以仅监控响应标头。

通过 Go 或 二进制发布版 安装:
go get -u github.com/rverton/wonitor
λ $ ./wonitor
NAME:
wonitor - web monitor
USAGE:
wonitor [global options] command [command options] [arguments...]
COMMANDS:
add, a add endpoint to monitor
delete, d deletes an endpoint
get, g get endpoint body
list, l list all monitored endpoints and their body size in bytes
monitor, m retrieve all urls and compare them
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help (default: false)
λ $ ./wonitor add --url https://unlink.io/
+ https://unlink.io/
λ $ ./wonitor monitor --save
[https://unlink.io/] 1576b diff:
--- Original
+++ Current
@@ -1 +1,47 @@
+HTTP/1.1 200 OK
+Content-Type: text/html
+Server: nginx/1.10.3 (Ubuntu)
+X-Frame-Options: DENY
+<html>
+<body>
+<pre>
[... snip ...]
+</pre>
+</body>
+</html>
+
λ $ ./wonitor monitor --save
λ $ # no output because no change detected
以下标头也会包含在保存的响应中,并监控其变化:
var headerToInclude = []string{
"Host",
"Content-Length",
"Content-Type",
"Location",
"Access-Control-Allow-Origin",
"Access-Control-Allow-Methods",
"Access-Control-Expose-Headers",
"Access-Control-Allow-Credentials",
"Allow",
"Content-Security-Policy",
"Proxy-Authenticate",
"Server",
"WWW-Authenticate",
"X-Frame-Options",
"X-Powered-By",
}