网页内容监控助手。监控网页变化,关键词出现或消失时触发告警。
python3 scripts/monitor_page.py --url "https://example.com/news" --keywords "发布,融资,合作"
python3 scripts/schedule_monitor.py --url "https://example.com" --keywords "融资" --schedule "0 */6 * * *"
单次监控页面变化。
python3 scripts/monitor_page.py --url <URL> --keywords <关键词,分隔> [--hash-file <历史文件>]
参数:
--url: 监控目标 URL--keywords: 逗号分隔的关键词列表--hash-file: 历史快照存储路径(默认 ~/.web_monitor/)创建定时监控任务。
python3 scripts/schedule_monitor.py --url <URL> --keywords <关键词> --schedule "<cron>" [--channel <wecom|feishu|ddingtalk>]
python3 scripts/monitor_page.py \
--url "https://www.example.com/press" \
--keywords "融资,上市,合作,收购"
python3 scripts/schedule_monitor.py \
--url "https://www.miit.gov.cn/政策页" \
--keywords "新规,实施,办法" \
--schedule "0 9 * * *" \
--channel wecom
默认:~/.web_monitor/
hashes.json — 页面哈希记录snapshots/ — 历史快照共 1 个版本