News Summary

从BBC、Reuters等国际RSS源抓取新闻并生成文本或语音摘要。

已扫描
适合谁
关注国际时事的职场人士、需要每日新闻简报的个人用户
不适合谁
仅需国内新闻的用户、无法访问境外RSS服务的网络环境用户
国内可用性
需网络配置。可能需要网络配置或第三方服务可访问。
安装难度
新手友好(★☆☆)。基于终端操作、依赖、API Key 和本地环境要求的初步判断。

安装与下载

openclaw skills install @joargp/news-summary

Skill 说明

命令、参数、文件名以原文为准

新闻摘要

概述

通过 RSS 订阅源从可信的国际新闻来源获取并摘要新闻内容。

RSS 订阅源

BBC(主订阅源)

# 世界新闻
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"

路透社

# 世界新闻
curl -s "https://www.reutersagency.com/feed/?best-regions=world&post_type=best"

NPR(美国视角)

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

阿拉伯电视台(全球南方视角)

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

解析 RSS

提取标题和描述:

curl -s "https://feeds.bbci.co.uk/news/world/rss.xml" | \
  grep -E "<title>|<description>" | \
  sed 's/<[^>]*>//g' | \
  sed 's/^[ \t]*//' | \
  head -30

工作流程

文本摘要

  1. 获取 BBC 世界新闻头条
  2. 可选地补充路透社或 NPR 的内容
  3. 对关键新闻进行摘要
  4. 按地区或主题分类整理

语音摘要

  1. 生成文本摘要
  2. 使用 OpenAI TTS 生成语音
  3. 以音频消息形式发送
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]

💼 商业
- [新闻标题 1]

💻 科技
- [新闻标题 1]

最佳实践

  • 保持摘要简洁(5-8 条重点新闻)
  • 优先处理突发新闻和重大事件
  • 语音摘要时控制在约 2 分钟以内
  • 平衡不同视角(西方与全球南方)
  • 如被要求,注明信息来源
J
@joargp

已收录 1 个 Skill

相关推荐