WeChat MP Monitor
by @lwd815813
Monitor WeChat MP (微信公众号) articles and send notifications. Use when user needs to track public account updates, summarize articles, or receive alerts when ne...
clawhub install wechat-mp-monitor📖 About This Skill
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
Quick Start
Monitor a single article
scripts/wechat_mp.py summary
Add account to watchlist
scripts/wechat_mp.py watch [--feishu-webhook ]
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 | Summarize a single article |
| watch | Add account to watchlist |
| unwatch | Remove from watchlist |
| list | Show watched accounts |
| check-all | Check all accounts for updates |
| history | Show recently processed articles |
Data Storage
~/.wechat_mp_monitor/watchlist.json~/.wechat_mp_monitor/history.jsonDependencies
Install: pip install requests beautifulsoup4
💡 Examples
Monitor a single article
scripts/wechat_mp.py summary
Add account to watchlist
scripts/wechat_mp.py watch [--feishu-webhook ]
Check all watched accounts
scripts/wechat_mp.py check-all
⚙️ Configuration
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"