360 Secure SkillHub
360 安全技能中心

Rss Aggregator

该 Skill 提供 Python 脚本,读取多个 RSS/Atom 源,解析标题、链接、描述与发布时间,支持按关键词、日期和数量过滤,可输出 JSON、HTML 或 Markdown 文件,并可在示例中配合 cron 定时执行和使用 Telegram 发送结果。

dinghaibin
dinghaibin
热度 31.32
最近更新 2026-05-11 17:46:13
分类:搜索依赖:代码执行 / 读写文件 / 第三方 API应用场景:研究 / 工作流 / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add rss-agg
Metadata
name
rss-aggregator
description
Parse, aggregate and process RSS/Atom feeds. Use when user wants to track multiple RSS feeds, create personalized news digest, monitor blog updates, or build newsletter content from various sources.

RSS Aggregator

Parse, aggregate and process RSS/Atom feeds for content aggregation and monitoring.

Quick Start

python scripts/aggregator.py --feeds feeds.txt --output items.json

Core Features

  • Multi-feed Aggregation: Combine multiple RSS/Atom sources
  • Content Parsing: Extract title, link, description, pubDate
  • Filtering: Filter by keyword, date, category
  • Output Formats: JSON, HTML, Markdown
  • Scheduling: Integrate with cron for periodic updates

Usage

python scripts/aggregator.py [OPTIONS]

Options:
  --feeds FILE       File with feed URLs (one per line)
  --url URL          Single feed URL (can repeat)
  --output FILE      Output file (JSON)
  --format FORMAT   Output format: json, html, markdown
  --limit N          Maximum items to return
  --keyword TEXT     Filter by keyword in title/description
  --since DATE       Only items after this date (ISO format)

Examples

# Aggregate multiple feeds
python scripts/aggregator.py --feeds my-feeds.txt --output news.json

# Single feed with keyword filter
python scripts/aggregator.py --url "https://example.com/feed.xml" --keyword "AI" --limit 10

# Generate HTML newsletter
python scripts/aggregator.py --feeds feeds.txt --format html --output newsletter.html

# Filter recent items
python scripts/aggregator.py --feeds feeds.txt --since "2026-01-01" --output recent.json

Feed File Format

# Lines starting with # are comments
# Blank lines are ignored

# Tech news
https://news.ycombinator.com/rss
https://www.reddit.com/r/programming/.rss

# Blogs
https://example.com/blog/feed.xml

Integration

Telegram Notification

python scripts/aggregator.py --feeds feeds.txt --output /tmp/items.json
telegram-send "Found $(jq '. | length' /tmp/items.json) new items"

Daily Newsletter

# Run daily at 8 AM
0 8 * * * python /path/to/aggregator.py --feeds feeds.txt --format markdown --output /tmp/digest.md && telegram-send --file /tmp/digest.md

Use Cases

  • Personal news aggregator
  • Competitive intelligence monitoring
  • Content curation for newsletters
  • Industry trend tracking
  • Blog update notifications