360 Secure SkillHub
360 安全技能中心

WeChat MP Monitor

核心功能:支持监控指定微信公众号新文章,可提取生成文章摘要,能通过飞书机器人推送通知,还可借助cron实现定时自动检测。典型场景:需追踪公众号动态、快速获取文章核心内容时使用。通过命令行操作,可添加/移除监控账号、生成单篇摘要、批量检测更新;配置飞书Webhook可接收通知,数据存储于本地JSON文件。

lwd815813
lwd815813
热度 67.10
最近更新 2026-05-11 17:31:16
分类:自动化依赖:代码执行 / 联网浏览搜索 / 第三方 API / 读写文件 / 内部调用大模型应用场景:自动化脚本 / 摘要总结 / 任务管理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add wechat-mp-monitor
Metadata
name
wechat-mp-monitor
description
Monitor WeChat MP (微信公众号) articles and send notifications. Use when user needs to track public account updates, summarize articles, or receive alerts when new content is published. Supports Feishu/Lark notifications and scheduled monitoring via cron.

WeChat MP Monitor

Monitor WeChat public account articles and deliver notifications.

Features

  • Monitor specific WeChat public accounts for new articles
  • Extract and summarize article content
  • Send notifications to Feishu/Lark
  • Schedule checks via cron

Quick Start

Monitor a single article

scripts/wechat_mp.py summary <article_url>

Add account to watchlist

scripts/wechat_mp.py watch <account_name> [--feishu-webhook <url>]

Check all watched accounts

scripts/wechat_mp.py check-all

Setup

Feishu Webhook (Optional)

To receive Feishu notifications:

  1. Create a Feishu group
  2. Add a webhook bot
  3. Copy the webhook URL
  4. Set environment variable:
    export FEISHU_WEBHOOK="https://open.feishu.cn/open-apis/bot/v2/hook/..."
    

Cron Schedule

Add to crontab for automatic monitoring:

# Check every hour
0 * * * * cd /path/to/workspace && python scripts/wechat_mp.py check-all

Or use OpenClaw cron:

openclaw cron add --name "wechat-monitor" --schedule "0 * * * *" --command "python scripts/wechat_mp.py check-all"

Commands

Command Description
summary <url> Summarize a single article
watch <name> Add account to watchlist
unwatch <name> Remove from watchlist
list Show watched accounts
check-all Check all accounts for updates
history Show recently processed articles

Data Storage

  • Watchlist: ~/.wechat_mp_monitor/watchlist.json
  • Article history: ~/.wechat_mp_monitor/history.json

Dependencies

  • Python 3.6+
  • requests
  • beautifulsoup4

Install: pip install requests beautifulsoup4