通用網站公告監控工具 - 支援任意政府公告/採購/招標網站的自動化監控
clawhub install notice-monitor
建立配置檔案 ~/.openclaw/workspace/notice-monitor-config.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"
# 手動執行一次
openclaw skill run notice-monitor --config ~/.openclaw/workspace/notice-monitor-config.yaml
# 啟用定時任務
openclaw skill cron notice-monitor enable
| 引數 | 型別 | 必填 | 說明 |
|---|---|---|---|
name |
string | ✅ | 任務名稱 |
url |
string | ✅ | 公告列表頁 URL |
levels |
array | ❌ | 層級配置(省/市/縣等) |
keywords |
array | ✅ | 過濾關鍵詞列表 |
schedule |
string | ❌ | Cron 表示式,定時執行 |
notify |
object | ✅ | 通知配置 |
| 引數 | 型別 | 說明 |
|---|---|---|
name |
string | 層級顯示名稱 |
selector |
string | 頁面選擇器(文本/XPath/CSS) |
| 引數 | 型別 | 說明 |
|---|---|---|
type |
string | 通知型別:dingtalk / wechat / email |
target |
string | 接收目標(使用者 ID/群 ID/郵箱) |
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"
tasks:
- name: 北京醫療招標
url: https://bphc.beijing.gov.cn/notice
keywords:
- 醫院
- 醫療
- 藥品
- 器械
- 衛生
- 診所
schedule: "0 9 * * *"
notify:
type: dingtalk
target: "01254349410626385789"
更多技能請訪問小蔥技能站7w4.net。
tasks:
- name: 上海 IT 採購
url: https://zfcg.sh.gov.cn/notice
keywords:
- 軟體
- 系統
- 資訊化
- 網路
- 資料
- 雲平臺
schedule: "0 10 * * *"
notify:
type: dingtalk
target: "01254349410626385789"
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: [軟體,系統,資訊化]
template: |
📢 {{taskName}} 日報
📅 {{date}}
{{#each levels}}
【{{name}}】{{count}}條
{{#each items}}
{{index}}️⃣ {{title}}
📍 {{area}} | 🕐 {{date}}
{{/each}}
{{/each}}
✅ 今日新增:{{total}}條
notify:
type: webhook
url: https://your-server.com/api/notify
method: POST
headers:
Authorization: Bearer xxx
📢 黑龍江教育採購 日報
📅 2026/3/20
【省級】14 條
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1️⃣ 哈爾濱醫科大學裝置更新專案招標公告
📍 黑龍江省省本級 | 🕐 2026-03-19
【市級】5 條
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1️⃣ 七臺河職業學院實訓室競爭性磋商公告
📍 七臺河市本級 | 🕐 2026-03-19
【縣區級】0 條
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ 今日新增:19 條 | 累計:156 條
tail -f ~/.openclaw/workspace/state/notice-monitor.log
openclaw skill run notice-monitor --config ~/.openclaw/workspace/notice-monitor-config.yaml --dry-run
rm ~/.openclaw/workspace/state/pushed-ids-*.json
MIT License
作者: 營銷總監
倉庫: https://clawhub.com/skills/notice-monitor
這個監控工具功能比較齊全,文件寫得很詳細,配有多個可直接使用的示例,上手難度不高。核心的網頁抓取、關鍵詞過濾、去重和通知功能都已實現,能滿足實際使用需求。不過打包時把狀態檔案和真實配置(如釘釘 ID)一起發出去了,存在隱私洩露風險;另外文件裡提到的命令列入口檔案實際上是缺失的。對於普通使用者來說,如果不是特別在意這些打包細節問題,功能本身是可用且好用的。