通用网站公告监控工具 - 支持任意政府公告/采购/招标网站的自动化监控
bash
clawhub install notice-monitor
创建配置文件 ~/.openclaw/workspace/notice-monitor-config.yaml:
yaml
# 监控任务配置
tasks:
- name: 黑龙江教育采购
url: https://hljcg.hlj.gov.cn/maincms-web/procurementNotice
levels:
- name: 省级
selector: "省级"
- name: 市级
selector: "市级"
- name: 县区级
selector: "县 (区)"
keywords:
- 教育
- 学校
- 学院
- 大学
- 培训
- 教学
schedule: "0 8 * * *" # 每天早 8 点
notify:
type: dingtalk
target: "01254349410626385789"
- name: 北京医疗招标
url: https://bphc.beijing.gov.cn/notice
keywords:
- 医院
- 医疗
- 药品
- 器械
schedule: "0 9 * * *"
notify:
type: dingtalk
target: "01254349410626385789"
bash
# 手动执行一次
openclaw skill run notice-monitor --config ~/.openclaw/workspace/notice-monitor-config.yaml
# 启用定时任务
openclaw skill cron notice-monitor enable
参数类型必填说明namestring✅任务名称urlstring✅公告列表页 URLlevelsarray❌层级配置(省/市/县等)keywordsarray✅过滤关键词列表schedulestring❌Cron 表达式,定时执行notifyobject✅通知配置
参数类型说明namestring层级显示名称selectorstring页面选择器(文本/XPath/CSS)
参数类型说明typestring通知类型: dingtalk / wechat / email``targetstring接收目标(用户 ID/群 ID/邮箱)
yaml
tasks:
- name: 黑龙江教育采购
url: https://hljcg.hlj.gov.cn/maincms-web/procurementNotice
levels:
- name: 省级
selector: "省级"
- name: 市级
selector: "市级"
- name: 县区级
selector: "县 (区)"
keywords:
- 教育
- 学校
- 学院
- 大学
- 中学
- 小学
- 幼儿园
- 培训
- 教学
- 科研
- 实验室
- 医院
schedule: "0 8 * * *"
notify:
type: dingtalk
target: "01254349410626385789"
yaml
tasks:
- name: 北京医疗招标
url: https://bphc.beijing.gov.cn/notice
keywords:
- 医院
- 医疗
- 药品
- 器械
- 卫生
- 诊所
schedule: "0 9 * * *"
notify:
type: dingtalk
target: "01254349410626385789"
yaml
tasks:
- name: 上海 IT 采购
url: https://zfcg.sh.gov.cn/notice
keywords:
- 软件
- 系统
- 信息化
- 网络
- 数据
- 云平台
schedule: "0 10 * * *"
notify:
type: dingtalk
target: "01254349410626385789"
yaml
tasks:
- name: 教育采购
url: https://hljcg.hlj.gov.cn/...
keywords: [教育,学校,学院]
- name: 医疗招标
url: https://bphc.beijing.gov.cn/...
keywords: [医院,医疗,药品]
- name: IT 项目
url: https://zfcg.sh.gov.cn/...
keywords: [软件,系统,信息化]
yaml
template: |
📢 {{taskName}} 日报
📅 {{date}}
{{#each levels}}
【{{name}}】{{count}}条
{{#each items}}
{{index}}️⃣ {{title}}
📍 {{area}} | 🕐 {{date}}
{{/each}}
{{/each}}
✅ 今日新增:{{total}}条
yaml
notify:
type: webhook
url: https://your-server.com/api/notify
method: POST
headers:
Authorization: Bearer xxx
text
📢 黑龙江教育采购 日报
📅 2026/3/20
【省级】14 条
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1️⃣ 哈尔滨医科大学设备更新项目招标公告
📍 黑龙江省省本级 | 🕐 2026-03-19
【市级】5 条
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1️⃣ 七台河职业学院实训室竞争性磋商公告
📍 七台河市本级 | 🕐 2026-03-19
【县区级】0 条
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ 今日新增:19 条 | 累计:156 条
bash
tail -f ~/.openclaw/workspace/state/notice-monitor.log
bash
openclaw skill run notice-monitor --config ~/.openclaw/workspace/notice-monitor-config.yaml --dry-run
bash
rm ~/.openclaw/workspace/state/pushed-ids-*.json
v1.0.0 (2026-03-20) - 初始版本
MIT License
作者: 营销总监