RSS Monitor
Monitor RSS feeds and deliver notifications when new articles are published.
Features
- - Monitor multiple RSS feeds
- Detect new articles automatically
- Send notifications to Feishu/Lark
- Schedule checks via cron
- Support for RSS, Atom, and JSON feeds
Quick Start
Add a feed to monitor
CODEBLOCK0
Check all feeds for updates
CODEBLOCK1
List monitored feeds
CODEBLOCK2
Setup
Feishu Webhook (Optional)
To receive Feishu notifications:
- 1. Create a Feishu group
- Add a webhook bot
- Copy the webhook URL
- Set environment variable:
CODEBLOCK3
Cron Schedule
Add to crontab for automatic monitoring:
CODEBLOCK4
Or use OpenClaw cron:
CODEBLOCK5
Commands
| Command | Description |
|---|
| INLINECODE0 | Add RSS feed to watchlist |
| INLINECODE1 |
Remove feed from watchlist |
|
list | Show all monitored feeds |
|
check-all | Check all feeds for updates |
|
check <name> | Check specific feed |
|
history | Show recently detected articles |
Data Storage
- - Watchlist: INLINECODE6
- Article history: INLINECODE7
Dependencies
- - Python 3.6+
- requests
- feedparser
Install: INLINECODE8
RSS 监控器
监控RSS订阅源,并在新文章发布时发送通知。
功能特性
- - 监控多个RSS订阅源
- 自动检测新文章
- 发送通知到飞书/Lark
- 通过cron定时检查
- 支持RSS、Atom和JSON订阅源
快速开始
添加要监控的订阅源
bash
scripts/rss_monitor.py add <订阅源URL> [--name <友好名称>]
检查所有订阅源的更新
bash
scripts/rss_monitor.py check-all
列出已监控的订阅源
bash
scripts/rss_monitor.py list
设置
飞书Webhook(可选)
要接收飞书通知:
- 1. 创建一个飞书群组
- 添加一个Webhook机器人
- 复制Webhook URL
- 设置环境变量:
bash
export FEISHU_WEBHOOK=https://open.feishu.cn/open-apis/bot/v2/hook/...
Cron定时任务
添加到crontab以实现自动监控:
bash
每30分钟检查一次
/30 * cd /path/to/workspace && python scripts/rss_monitor.py check-all
或使用OpenClaw cron:
bash
openclaw cron add --name rss-monitor --schedule /30 * --command python scripts/rss_monitor.py check-all
命令
| 命令 | 描述 |
|---|
| add <url> | 添加RSS订阅源到监控列表 |
| remove <name> |
从监控列表中移除订阅源 |
| list | 显示所有已监控的订阅源 |
| check-all | 检查所有订阅源的更新 |
| check
| 检查特定订阅源 |
| history | 显示最近检测到的文章 |
数据存储
- - 监控列表:~/.rssmonitor/feeds.json
- 文章历史:~/.rssmonitor/history.json
依赖项
- - Python 3.6+
- requests
- feedparser
安装:pip install requests feedparser