🦀 ClawHub
News Digest Aggregator - 新闻聚合
by @cp3d1455926-svg
Daily automated news digest that fetches RSS feeds, aggregates articles using LLM summarization, and delivers formatted digests to messaging channels (Discor...
TERMINAL
clawhub install news-digest-aggregator📖 About This Skill
name: news-digest-aggregator description: Daily automated news digest that fetches RSS feeds, aggregates articles using LLM summarization, and delivers formatted digests to messaging channels (Discord/Slack/Feishu) on a schedule. Use when user wants daily news summaries, RSS aggregation, or scheduled content delivery.
News Digest Aggregator
Automated daily news digest system that collects articles from RSS feeds, summarizes them using LLM, and delivers formatted digests to your preferred messaging channel.
Quick Start
1. Configure RSS sources in references/sources.json
2. Set up channel credentials in environment variables
3. Run scripts/fetch_and_digest.py manually or schedule with cron
Configuration
RSS Sources
Edit references/sources.json:
{
"sources": [
{"name": "TechCrunch", "url": "https://techcrunch.com/feed/", "category": "tech"},
{"name": "Reuters", "url": "https://www.reutersagency.com/feed/?taxonomy=markets&post_type=reuters-best", "category": "finance"}
]
}
Channel Settings
Set environment variables for your target channel:
Discord:
export DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/..."
Slack:
export SLACK_WEBHOOK_URL="https://hooks.slack.com/services/..."
Feishu:
export FEISHU_WEBHOOK_URL="https://open.feishu.cn/open-apis/bot/v2/hook/..."
Usage
Manual Run
python scripts/fetch_and_digest.py --config references/sources.json --channel discord
Scheduled (Cron)
# Daily at 9 AM
0 9 * * * cd /path/to/skill && python scripts/fetch_and_digest.py --config references/sources.json --channel discord
Output Format
The digest includes:
Customization
MAX_ARTICLES in the script (default: 5)SUMMARY_MAX_TOKENS (default: 150)💡 Examples
Manual Run
python scripts/fetch_and_digest.py --config references/sources.json --channel discord
Scheduled (Cron)
# Daily at 9 AM
0 9 * * * cd /path/to/skill && python scripts/fetch_and_digest.py --config references/sources.json --channel discord
⚙️ Configuration
RSS Sources
Edit references/sources.json:
{
"sources": [
{"name": "TechCrunch", "url": "https://techcrunch.com/feed/", "category": "tech"},
{"name": "Reuters", "url": "https://www.reutersagency.com/feed/?taxonomy=markets&post_type=reuters-best", "category": "finance"}
]
}
Channel Settings
Set environment variables for your target channel:
Discord:
export DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/..."
Slack:
export SLACK_WEBHOOK_URL="https://hooks.slack.com/services/..."
Feishu:
export FEISHU_WEBHOOK_URL="https://open.feishu.cn/open-apis/bot/v2/hook/..."