news-summary

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

News Summary

新闻摘要

Overview

概述

Fetch and summarize news from trusted international sources via RSS feeds.
通过RSS源从可靠的国际新闻源获取并汇总新闻。

RSS Feeds

RSS源

BBC (Primary)

BBC(主要源)

bash
undefined
bash
undefined

World news

全球新闻

Top stories

头条新闻

Business

商业新闻

Technology

科技新闻

Reuters

Reuters

bash
undefined
bash
undefined

World news

全球新闻

NPR (US perspective)

NPR(美国视角)

bash
curl -s "https://feeds.npr.org/1001/rss.xml"
bash
curl -s "https://feeds.npr.org/1001/rss.xml"

Al Jazeera (Global South perspective)

Al Jazeera(全球南方视角)

bash
curl -s "https://www.aljazeera.com/xml/rss/all.xml"
bash
curl -s "https://www.aljazeera.com/xml/rss/all.xml"

Parse RSS

解析RSS

Extract titles and descriptions:
bash
curl -s "https://feeds.bbci.co.uk/news/world/rss.xml" | \
  grep -E "<title>|<description>" | \
  sed 's/<[^>]*>//g' | \
  sed 's/^[ \t]*//' | \
  head -30
提取标题和描述:
bash
curl -s "https://feeds.bbci.co.uk/news/world/rss.xml" | \
  grep -E "<title>|<description>" | \
  sed 's/<[^>]*>//g' | \
  sed 's/^[ \t]*//' | \
  head -30

Workflow

工作流程

Text summary

文本摘要

  1. Fetch BBC world headlines
  2. Optionally supplement with Reuters/NPR
  3. Summarize key stories
  4. Group by region or topic
  1. 获取BBC全球头条新闻
  2. 可选补充Reuters/NPR的新闻
  3. 汇总关键新闻事件
  4. 按地区或主题分组

Voice summary

语音摘要

  1. Create text summary
  2. Generate voice with OpenAI TTS
  3. Send as audio message
bash
curl -s https://api.openai.com/v1/audio/speech \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "tts-1-hd",
    "input": "<news summary text>",
    "voice": "onyx",
    "speed": 0.95
  }' \
  --output /tmp/news.mp3
  1. 生成文本摘要
  2. 使用OpenAI TTS生成语音
  3. 以音频消息形式发送
bash
curl -s https://api.openai.com/v1/audio/speech \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "tts-1-hd",
    "input": "<news summary text>",
    "voice": "onyx",
    "speed": 0.95
  }' \
  --output /tmp/news.mp3

Example Output Format

示例输出格式

📰 News Summary [date]

🌍 WORLD
- [headline 1]
- [headline 2]

💼 BUSINESS
- [headline 1]

💻 TECH
- [headline 1]
📰 新闻摘要 [日期]

🌍 全球新闻
- [头条1]
- [头条2]

💼 商业新闻
- [头条1]

💻 科技新闻
- [头条1]

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
  • 摘要保持简洁(5-8条头条新闻)
  • 优先推送突发新闻和重大事件
  • 语音摘要:最长约2分钟
  • 平衡新闻视角(西方+全球南方)
  • 若用户询问,需注明新闻来源