News Summary
Overview
Fetch and summarize news from trusted international sources via RSS feeds.
RSS Feeds
BBC (Primary)
CODEBLOCK0
Reuters
CODEBLOCK1
NPR (US perspective)
CODEBLOCK2
Al Jazeera (Global South perspective)
CODEBLOCK3
Parse RSS
Extract titles and descriptions:
CODEBLOCK4
Workflow
Text summary
- 1. Fetch BBC world headlines
- Optionally supplement with Reuters/NPR
- Summarize key stories
- Group by region or topic
Voice summary
- 1. Create text summary
- Generate voice with OpenAI TTS
- Send as audio message
CODEBLOCK5
Example Output Format
CODEBLOCK6
Best Practices
- - Keep summaries concise (5-8 top stories)
- Prioritize breaking news and major events
- For voice: ~2 minutes max
- Balance perspectives (Western + Global South)
- Cite source if asked
新闻摘要
概述
通过RSS订阅源从可信国际新闻源获取并汇总新闻。
RSS订阅源
BBC(主要来源)
bash
国际新闻
curl -s https://feeds.bbci.co.uk/news/world/rss.xml
头条新闻
curl -s https://feeds.bbci.co.uk/news/rss.xml
商业新闻
curl -s https://feeds.bbci.co.uk/news/business/rss.xml
科技新闻
curl -s https://feeds.bbci.co.uk/news/technology/rss.xml
路透社
bash
国际新闻
curl -s https://www.reutersagency.com/feed/?best-regions=world&post_type=best
NPR(美国视角)
bash
curl -s https://feeds.npr.org/1001/rss.xml
半岛电视台(全球南方视角)
bash
curl -s https://www.aljazeera.com/xml/rss/all.xml
解析RSS
提取标题和描述:
bash
curl -s https://feeds.bbci.co.uk/news/world/rss.xml | \
grep -E
| | \
sed s/<[^>]*>//g | \
sed s/^[ \t]*// | \
head -30
工作流程
文本摘要
- 1. 获取BBC国际头条
- 可选补充路透社/NPR新闻
- 汇总关键新闻
- 按地区或主题分组
语音摘要
- 1. 创建文本摘要
- 使用OpenAI TTS生成语音
- 以音频消息形式发送
bash
curl -s https://api.openai.com/v1/audio/speech \
-H Authorization: Bearer $OPENAIAPIKEY \
-H Content-Type: application/json \
-d {
model: tts-1-hd,
input: <新闻摘要文本>,
voice: onyx,
speed: 0.95
} \
--output /tmp/news.mp3
输出格式示例
📰 新闻摘要 [日期]
🌍 国际新闻
💼 商业新闻
💻 科技新闻
最佳实践
- - 保持摘要简洁(5-8条重要新闻)
- 优先报道突发新闻和重大事件
- 语音摘要:最长约2分钟
- 平衡视角(西方+全球南方)
- 如需可注明来源