← 返回
未分类

Smart Web Monitor (智能网页监控)

Smart web monitor with AI-powered matching. Unlike keyword/regex monitors, this skill uses the agent's own LLM reasoning to evaluate whether a web page match...
基于AI匹配的智能网页监控。不同于关键字/正则监控,该技能利用代理自身的LLM推理判断网页是否匹配。
skywalker-lili
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 382
下载
💾 0
安装
1
版本
#latest

概述

Smart Web Monitor (智能网页监控)

Watch any web page for changes — with AI-powered understanding. Instead of rigid keyword matching, describe what you're looking for in natural language and let the agent decide.

Why "Smart"?

普通监控Smart Web Monitor
-----------------------------
关键词匹配:risk manager自然语言:"是否有风控岗位?排除实习"
静态正则:risk.{0,20}managerAgent 理解上下文语义
匹配即通知匹配后 Agent 可以总结、分析、过滤
一次判断Agent 持续推理,理解页面结构变化

Quick Start

Create a Monitor

# Simple: keyword match
python3 scripts/monitor.py create \
  --name "hk-risk-jobs" \
  --url "https://careers.example.com/risk" \
  --match-type keyword \
  --match-value "risk manager,hong kong,compliance"

# Smart: LLM match (agent evaluates with natural language understanding)
python3 scripts/monitor.py create \
  --name "hk-fintech-news" \
  --url "https://36kr.com" \
  --match-type llm \
  --match-value "是否有香港金融科技、虚拟银行相关新闻?排除广告。"

Run (keyword/regex/css/jsonpath)

python3 scripts/monitor.py run --event hk-risk-jobs
# → auto-matches, auto-pauses on match

Fetch for LLM (extract text only)

python3 scripts/monitor.py fetch --event hk-fintech-news
# → outputs JSON with page text for LLM agent to evaluate

After Match — Pause & Resume

python3 scripts/monitor.py resume --event xxx   # 继续
python3 scripts/monitor.py pause --event xxx    # 暂停
python3 scripts/monitor.py disable --event xxx  # 停用
python3 scripts/monitor.py enable --event xxx   # 启用

Match Types

TypeHow It WorksSmart?Example
------------
keywordComma-separated keywords (case-insensitive)risk manager,hong kong
regexRegular expression patternrisk.{0,20}manager
cssCSS selector — matches if elements exist.job-listing .title
jsonpathJSONPath for API responses$.data.jobs[*].title
llm🤖 Agent evaluates with LLM reasoning是否有风控岗位?排除实习

🤖 LLM Match (Smart Matching — 核心功能)

This is what makes the monitor "smart". Instead of rigid pattern matching, the agent reads the page and thinks.

How it works:

  1. monitor.py fetch — fetches page, extracts clean text → outputs JSON
  2. Cron agent — reads the text, evaluates using its own LLM reasoning
  3. Agent decides: does this match the condition?
  4. If matched → notifies you with a summary → auto-pauses (won't spam)
  5. If not matched → silently skips

This enables natural language conditions that would be impossible with regex:

  • "是否有新的职位空缺?排除已见过的"
  • "页面上有没有提到 Series B 或以上的融资?"
  • "是否出现了与 AI 安全相关的文章?排除广告和推广内容"

State Machine

active ──(match found)──→ paused ──(resume)──→ active
   │                                            ↑
   └──(disable)──→ disabled ──(enable)──────────┘

Monitor Config Format

{
  "name": "hk-risk-jobs",
  "description": "Hong Kong risk management jobs",
  "urls": [{"url": "https://careers.example.com/risk", "label": "Example"}],
  "match": {
    "type": "llm",
    "value": "是否有香港风控或合规岗位?排除实习。"
  },
  "interval": 7200,
  "state": "active",
  "enabled": true
}

Cron Integration

For keyword/regex/css/jsonpath monitors:

openclaw cron add \
  --name "Monitor: hk-risk-jobs" \
  --cron "0 */2 * * *" \
  --tz "Asia/Hong_Kong" \
  --session isolated \
  --message "Run monitor: cd /home/node/.openclaw/workspace/skills/web-monitor && python3 scripts/monitor.py run --event hk-risk-jobs" \
  --announce --channel discord --to "user:YOUR_ID" --light-context

For LLM monitors:

openclaw cron add \
  --name "Monitor: hk-fintech-news" \
  --cron "0 */3 * * *" \
  --tz "Asia/Hong_Kong" \
  --session isolated \
  --message 'You are a web monitor agent. Run: cd /home/node/.openclaw/workspace/skills/web-monitor && python3 scripts/monitor.py fetch --event hk-fintech-news. Read the output JSON. For each URL, evaluate if the page content matches the condition: "是否有香港金融科技相关新闻?排除广告。" If matched: output a brief summary of what matched. If not matched: say "no match". If matched, also run: python3 scripts/monitor.py pause --event hk-fintech-news' \
  --announce --channel discord --to "user:YOUR_ID" --light-context

All Commands

CommandUsage
------
createCreate new monitor
run --event XRun with built-in matching
fetch --event XFetch page text (for LLM)
listShow all monitors
show --event XShow config
resume/pause/disable/enableState management
delete --event XDelete monitor
add-urlAdd URL to monitor

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 11:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Gemini Deep Research (J-claw)

skywalker-lili
通过 gemini-cli deep-research MCP 扩展进行的 Gemini 深度研究功能。适用于用户需要深入研究某个主题、进行市场/行业分析或生成研究报告等场景。
★ 0 📥 355

Deep Research via Gemini CLI Extension

skywalker-lili
使用 Gemini CLI 的 gemini-deep-research MCP 扩展执行深度研究。当用户需要对某个主题进行深入、综合性研究时使用。
★ 0 📥 353

NotebookLM Content Creation

skywalker-lili
通过 notebooklm-mcp-cli 创建和监控 NotebookLM Studio 内容(音频概览、视频概览、信息图表和幻灯片)。用于用户想要...
★ 1 📥 498