ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

newsnow-reader

优雅地阅读实时热门新闻。支持微博、知乎、百度、抖音、华尔街见闻、今日头条、澎湃新闻等8个主流平台。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/castieler/newsnow-reader
Or

NewsNow 新闻阅读器

获取并展示实时热门新闻,基于 newsnow 项目实现原理,直接调用各平台 API。

系统依赖

本 skill 仅使用 Python 标准库,无需任何外部依赖:

  • urllib:Python 标准库,用于发送 HTTP 请求
  • jsonretime:Python 标准库

无需安装任何额外依赖或二进制文件。

支持的新闻源

来源标识说明
微博热搜weibo微博实时热搜榜
知乎热榜zhihu知乎热门话题
百度热搜baidu百度搜索热点
抖音热榜douyin抖音热门话题
华尔街见闻wallstreetcn华尔街见闻热门文章
今日头条toutiao今日头条热榜
澎湃新闻thepaper澎湃新闻热搜

使用方法

1. 获取并展示新闻

# 获取微博热搜(默认)
python newsnow-reader/scripts/fetch_news.py

# 获取知乎热榜
python newsnow-reader/scripts/fetch_news.py zhihu

# 获取抖音热搜,限制10条
python newsnow-reader/scripts/fetch_news.py douyin 10

# 获取华尔街见闻
python newsnow-reader/scripts/fetch_news.py wallstreetcn 10

# 获取今日头条
python newsnow-reader/scripts/fetch_news.py toutiao 10

# 获取澎湃新闻
python newsnow-reader/scripts/fetch_news.py thepaper 10

2. 格式化输出

# 优雅格式(带边框、emoji)
python newsnow-reader/scripts/format_news.py news.json elegant

# 紧凑格式
python newsnow-reader/scripts/format_news.py news.json compact

# Markdown格式
python newsnow-reader/scripts/format_news.py news.json markdown

# 摘要格式(前5条)
python newsnow-reader/scripts/format_news.py news.json summary

3. 完整流程示例

# 获取微博热搜并优雅展示
python newsnow-reader/scripts/fetch_news.py weibo 15 > /tmp/news.json && \
python newsnow-reader/scripts/format_news.py /tmp/news.json elegant

输出格式

JSON 格式

[
  {
    "id": "唯一标识",
    "title": "新闻标题",
    "url": "完整URL",
    "mobileUrl": "移动端URL(可选)",
    "extra": {
      "info": "附加信息(如热度)",
      "hover": "悬停描述"
    }
  }
]

Elegant 样式示例

╔══════════════════════════════════════════════════════════╗
║               📰 实时热门新闻                            ║
╠════════════════════════════════════════════════════════╣
║  更新时间: 2024-01-15 14:30:25                                                     ║
╚════════════════════════════════════════════════════════╝

1️⃣ 新闻标题内容 🔥1234567
   📍 微博热搜
   🔗 https://...

2️⃣ 另一条新闻标题 🔥987654
   📍 微博热搜

快速命令

需求命令
微博热搜python newsnow-reader/scripts/fetch_news.py weibo | python -m json.tool
知乎热榜python newsnow-reader/scripts/fetch_news.py zhihu
百度热点python newsnow-reader/scripts/fetch_news.py baidu
抖音热搜python newsnow-reader/scripts/fetch_news.py douyin
华尔街见闻python newsnow-reader/scripts/fetch_news.py wallstreetcn
今日头条python newsnow-reader/scripts/fetch_news.py toutiao
澎湃新闻python newsnow-reader/scripts/fetch_news.py thepaper

实现原理

本 skill 基于 newsnow 项目实现,采用以下方式获取数据:

  • 微博热搜: 解析 HTML + 特定 Cookie
  • 知乎热榜: 直接调用官方 JSON API
  • 百度热搜: 从 HTML 注释中提取 JSON 数据
  • 抖音热榜: 获取 session cookie 后调用 API
  • 华尔街见闻: 直接调用热门文章 API
  • 今日头条: 直接调用热榜 API
  • 澎湃新闻: 直接调用右侧边栏 API

所有数据获取均通过 Python 标准库 urllib 直接调用各平台 API,无需 MCP Server 或外部依赖。

故障排查

Metadata

Author@castieler
Stars4072
Views1
Updated2026-04-13
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-castieler-newsnow-reader": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.