简介
一站式聚合66个来源44个平台的热门资讯,支持JSON结构化输出与多源分类检索,适合开发者与信息追踪者。
原始描述
CLI tool to fetch trending news and hot topics from 66 sources across 44 platforms. Returns structured news items with titles, URLs, and metadata. USE FOR: -...
中文使用说明 来自收录源
核心用法
newsnow 是一款开源 CLI 工具,专为高效抓取多平台热门资讯而设计。用户通过简单的命令行交互即可获取来自 Hacker News、GitHub Trending、微博热搜、B站热门等 66 个数据源的实时热点,覆盖科技、金融、社交、新闻、安全等多个领域。
典型工作流程:
- 探索阶段 —— 执行
newsnow list查看所有可用源,支持--json输出便于程序化筛选 - 获取阶段 —— 直接调用
newsnow <source>获取可读内容,或追加--json获得结构化数据(含 id、title、url、pubDate、extra 字段) - 处理阶段 —— 结合
jq等工具对 JSON 输出进行过滤、排序与二次开发
推荐组合:科技类优先 hackernews+github+v2ex;金融类可选 wallstreetcn+cls+xueqiu;社交热点追踪 weibo+zhihu+douyin。
显著优点
- 覆盖极广:44个平台66个端点,中英文资讯一站聚合,无需多平台切换
- 输出灵活:同时支持人类可读格式与机器友好的 JSON,兼顾终端浏览与自动化管道
- 分类清晰:内置科技、金融、社交、安全等分类指南,降低源选择成本
- 轻量无依赖:基于 npm 生态,安装后即可运行,无复杂配置(仅 Product Hunt 需 Token)
- 开源可审计:作为 CLI 工具,源码透明,便于安全审查与自定义扩展
潜在局限
- 网络可达性:部分中文源(如 linuxdo 系列)可能触发 Cloudflare 403;海外访问部分国内平台存在连通性风险
- 数据稳定性:依赖各平台反爬策略与页面结构,源失效或格式变更需等待上游修复
- 认证限制:Product Hunt 等商业平台需 API Token,未提供时无法获取
- 实时性参差:各源更新频率不一,部分为小时级聚合而非秒级推送
适合人群
- 开发者与数据工程师:需要结构化新闻源作为数据管道输入
- 投资者与分析师:追踪雪球、华尔街见闻等金融快讯
- 产品经理与运营:监控 GitHub Trending、Product Hunt 等产品动态
- 技术爱好者:聚合阅读 Hacker News、V2EX、掘金等技术社区热点
常规风险
| 风险类型 | 说明 | 缓解建议 |
|---|---|---|
| 网络合规 | 抓取行为需遵守各平台 ToS 及当地法规 | 控制请求频率,避免商业滥用 |
| 数据真实性 | 源内容未经审核,存在虚假/偏颇信息可能 | 交叉验证关键信息 |
| 隐私泄露 | JSON 输出可能含用户生成内容中的敏感信息 | 妥善处理输出日志,避免持久化存储 |
| 服务中断 | 单点源故障不影响整体,但特定业务依赖需 fallback | 配置多源冗余策略 |
技能正文
name: newsnow description: | CLI tool to fetch trending news and hot topics from 66 sources across 44 platforms. Returns structured news items with titles, URLs, and metadata.
USE FOR:
- Fetching trending/hot news from Chinese and international platforms
- Monitoring hot topics across social media, tech, finance, and news sites
- Getting structured news data as JSON for further processing
- Listing available news sources
Requires npm install. Some sources need env vars (PRODUCTHUNT_API_TOKEN). Some sources may be blocked by Cloudflare (linuxdo). allowed-tools:
- Bash(newsnow *)
- Bash(npx newsnow *)
newsnow CLI
Fetch trending news and hot topics from 66 sources across 44 platforms. Returns news items with title, URL, and optional metadata.
Run newsnow --help for usage details.
Workflow
Follow this pattern:
- List - Don't know what sources are available? List them first.
- Fetch - Know the source? Fetch news directly.
- JSON - Need structured data? Add
--jsonfor machine-readable output.
| Need | Command | When |
|---|---|---|
| See all sources | newsnow list |
Don't know source names |
| See sources as JSON | newsnow list --json |
Need source list programmatically |
| Get news | newsnow <source> |
Know the source, want readable output |
| Get news as JSON | newsnow <source> --json |
Need structured data for processing |
Commands
list
List all available sources.
newsnow list
newsnow list --json
Fetch a source
newsnow hackernews
newsnow hackernews --json
Output fields (JSON mode):
id- Unique item identifiertitle- News headlineurl- Link to the article (optional)pubDate- Publication date (optional)extra- Additional metadata like view counts, comments (optional)
Sources
66 source endpoints across 44 platforms:
| Platform | Sources |
|---|---|
| 36kr | 36kr, 36kr-quick, 36kr-renqi |
| Baidu | baidu |
| Bilibili | bilibili, bilibili-hot-search, bilibili-hot-video, bilibili-ranking |
| Cankaoxiaoxi | cankaoxiaoxi |
| Chongbuluo | chongbuluo, chongbuluo-hot, chongbuluo-latest |
| CLS | cls, cls-telegraph, cls-depth, cls-hot |
| Coolapk | coolapk |
| Douban | douban |
| Douyin | douyin |
| Fastbull | fastbull, fastbull-express, fastbull-news |
| FreeBuf | freebuf |
| Gelonghui | gelonghui |
| Ghxi | ghxi |
| GitHub | github, github-trending-today |
| Hacker News | hackernews |
| Hupu | hupu |
| iFeng | ifeng |
| iQIYI | iqiyi-hot-ranklist |
| ITHome | ithome |
| Jin10 | jin10 |
| Juejin | juejin |
| Kaopu | kaopu |
| Kuaishou | kuaishou |
| LinuxDo | linuxdo, linuxdo-latest, linuxdo-hot |
| MktNews | mktnews, mktnews-flash |
| Nowcoder | nowcoder |
| PCBeta | pcbeta-windows, pcbeta-windows11 |
| Product Hunt | producthunt |
| QQ Video | qqvideo-tv-hotsearch |
| SMZDM | smzdm |
| Solidot | solidot |
| Sputnik News CN | sputniknewscn |
| SSPai | sspai |
| Steam | steam |
| Tencent | tencent-hot |
| The Paper | thepaper |
| Tieba | tieba |
| Toutiao | toutiao |
| V2EX | v2ex, v2ex-share |
| Wall Street CN | wallstreetcn, wallstreetcn-quick, wallstreetcn-news, wallstreetcn-hot |
weibo |
|
| Xueqiu | xueqiu, xueqiu-hotstock |
| Zaobao | zaobao |
| Zhihu | zhihu |
Source Selection Guide
| Category | Recommended Sources |
|---|---|
| Tech | hackernews, github, v2ex, juejin, ithome, linuxdo |
| Finance | xueqiu, wallstreetcn, cls, jin10, gelonghui, fastbull |
| General News | toutiao, baidu, thepaper, ifeng, zaobao, cankaoxiaoxi |
| Social/Trending | weibo, douyin, bilibili, zhihu, tieba, douban |
| Security | freebuf |
| Product/Design | producthunt, sspai |
Environment Variables
PRODUCTHUNT_API_TOKEN- Required forproducthuntsource
Known Limitations
linuxdo,linuxdo-latest,linuxdo-hotmay return 403 Forbidden (Cloudflare)- Some Chinese sources may be inaccessible from outside mainland China
Working with Results
newsnow hackernews --json | jq '.[].title'
newsnow hackernews --json | jq '.[:5]'
newsnow weibo --json | jq '.[] | "\(.title) \(.url)"'
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。