← 返回 Skills 市场
dinghaibin

Web Monitor

作者 BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
56
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install dinghaibin-web-monitor
功能描述
Monitor web pages for content changes with CSS selector targeting, change detection via hashing, and notification integration. Use for price tracking, conten...
使用说明 (SKILL.md)

Web Monitor — Page Change Detection & Alerts

Track web pages for content changes using hash-based comparison. Supports CSS selector extraction, interval-based monitoring, change history, and configurable notification delivery.

Quick Start

# Compare current page with previous snapshot
python scripts/monitor.py --url https://example.com --compare state.json

# Monitor with a CSS selector
python scripts/monitor.py --url https://example.com --selector ".price" --compare state.json

Usage

python scripts/monitor.py --url URL [OPTIONS]

Options:
  --url URL              Page URL to monitor (required)
  --selector SELECTOR    CSS selector to extract specific content
  --compare FILE         Compare with previous snapshot from FILE
  --state-file FILE      Save current state to FILE (default: state.json)
  --interval SEC         Auto-monitor at interval (seconds)
  --notify COMMAND       Command to run on change detected
  --json                 Output as JSON
  --max-retries N        Connection retries on failure (default: 3)

Examples

# Simple page check
python scripts/monitor.py --url https://example.com/page --compare state.json

# Monitor a price element
python scripts/monitor.py --url https://shop.example.com/product \
  --selector ".product-price" --compare price-state.json

# Continuous monitoring
python scripts/monitor.py --url https://example.com \
  --interval 3600 --compare state.json --notify "echo 'Changed!'"

# JSON output for pipeline
python scripts/monitor.py --url https://example.com --json

State File Format

{
  "url": "https://example.com/page",
  "selector": ".price",
  "hash": "sha256hash...",
  "timestamp": "2026-01-15T14:30:00Z"
}

Features

  • Hash-based change detection — reliable content comparison
  • CSS selector extraction — monitor specific page sections
  • State persistence — stores snapshots for comparison
  • Interval monitoring — automatic periodic checks
  • Notification hooks — trigger commands on changes
  • No external dependencies — uses only Python stdlib
  • SSL/HTTPS support — secure page fetching
  • JSON output — structured data for automation
安全使用建议
Review carefully before installing. Avoid using it for sensitive or security-critical monitoring unless TLS verification is fixed, use only trusted notification commands, and enable `--hash-only` when monitoring pages whose content should not be saved locally.
能力评估
Purpose & Capability
The monitoring, hashing, state-file, and notification behavior is purpose-aligned, but scripts/monitor.py disables TLS verification (`ctx.check_hostname = False`, `ctx.verify_mode = ssl.CERT_NONE`) while SKILL.md advertises `SSL/HTTPS support — secure page fetching`.
Instruction Scope
The skill documents a broad notification hook (`--notify COMMAND`) and scripts/monitor.py executes it with `os.system(args.notify)` when a change is detected; this is disclosed and purpose-aligned, but users should treat it as arbitrary shell execution.
Install Mechanism
No install spec or automatic dependency installation is present; the included script uses Python standard-library imports, and optional notification examples are user-directed.
Credentials
For a web monitor that may trigger alerts from remote page content, disabling HTTPS validation in scripts/monitor.py is not proportionate because network attackers can spoof monitored content.
Persistence & Privilege
Persistence is local and user-selected, but scripts/monitor.py stores full fetched content by default in output data (`'content': content if not args.hash_only else None`); use `--hash-only` for private pages.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dinghaibin-web-monitor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dinghaibin-web-monitor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug dinghaibin-web-monitor
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Web Monitor 是什么?

Monitor web pages for content changes with CSS selector targeting, change detection via hashing, and notification integration. Use for price tracking, conten... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 56 次。

如何安装 Web Monitor?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install dinghaibin-web-monitor」即可一键安装,无需额外配置。

Web Monitor 是免费的吗?

是的,Web Monitor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Web Monitor 支持哪些平台?

Web Monitor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Web Monitor?

由 BIN(@dinghaibin)开发并维护,当前版本 v1.0.0。

💬 留言讨论