newsnow

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

newsnow CLI

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.
可从44个平台的66个数据源获取热门新闻和热点话题。返回包含标题、URL和可选元数据的新闻条目。
运行
newsnow --help
查看使用详情。

Workflow

工作流程

Follow this pattern:
  1. List - Don't know what sources are available? List them first.
  2. Fetch - Know the source? Fetch news directly.
  3. JSON - Need structured data? Add
    --json
    for machine-readable output.
NeedCommandWhen
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
遵循以下步骤:
  1. 列出数据源 - 不知道有哪些可用数据源?先列出它们。
  2. 获取新闻 - 知道数据源?直接获取新闻。
  3. 导出JSON - 需要结构化数据?添加
    --json
    参数以获得机器可读的输出。
需求命令使用场景
查看所有数据源
newsnow list
不知道数据源名称时
以JSON格式查看数据源
newsnow list --json
需要以编程方式使用数据源列表时
获取新闻
newsnow <source>
知道数据源,需要可读格式的输出时
以JSON格式获取新闻
newsnow <source> --json
需要结构化数据进行处理时

Commands

命令

list

list

List all available sources.
bash
newsnow list
newsnow list --json
列出所有可用的数据源。
bash
newsnow list
newsnow list --json

Fetch a source

获取指定数据源的新闻

bash
newsnow hackernews
newsnow hackernews --json
Output fields (JSON mode):
  • id
    - Unique item identifier
  • title
    - News headline
  • url
    - Link to the article (optional)
  • pubDate
    - Publication date (optional)
  • extra
    - Additional metadata like view counts, comments (optional)
bash
newsnow hackernews
newsnow hackernews --json
JSON模式下的输出字段:
  • id
    - 唯一条目标识符
  • title
    - 新闻标题
  • url
    - 文章链接(可选)
  • pubDate
    - 发布日期(可选)
  • extra
    - 额外元数据,如浏览量、评论数(可选)

Sources

数据源

66 source endpoints across 44 platforms:
PlatformSources
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
weibo
Xueqiu
xueqiu
,
xueqiu-hotstock
Zaobao
zaobao
Zhihu
zhihu
覆盖44个平台的66个数据源端点:
平台数据源
36氪
36kr
,
36kr-quick
,
36kr-renqi
百度
baidu
Bilibili
bilibili
,
bilibili-hot-search
,
bilibili-hot-video
,
bilibili-ranking
参考消息
cankaoxiaoxi
虫部落
chongbuluo
,
chongbuluo-hot
,
chongbuluo-latest
CLS
cls
,
cls-telegraph
,
cls-depth
,
cls-hot
酷安
coolapk
豆瓣
douban
抖音
douyin
富途牛牛
fastbull
,
fastbull-express
,
fastbull-news
FreeBuf
freebuf
格隆汇
gelonghui
果核剥壳
ghxi
GitHub
github
,
github-trending-today
Hacker News
hackernews
虎扑
hupu
凤凰网
ifeng
爱奇艺
iqiyi-hot-ranklist
IT之家
ithome
Jin10
jin10
掘金
juejin
靠谱投研
kaopu
快手
kuaishou
LinuxDo
linuxdo
,
linuxdo-latest
,
linuxdo-hot
市场资讯
mktnews
,
mktnews-flash
牛客网
nowcoder
远景论坛
pcbeta-windows
,
pcbeta-windows11
Product Hunt
producthunt
腾讯视频
qqvideo-tv-hotsearch
什么值得买
smzdm
Solidot
solidot
俄罗斯卫星通讯社中文网
sputniknewscn
少数派
sspai
Steam
steam
腾讯
tencent-hot
澎湃新闻
thepaper
贴吧
tieba
今日头条
toutiao
V2EX
v2ex
,
v2ex-share
华尔街见闻
wallstreetcn
,
wallstreetcn-quick
,
wallstreetcn-news
,
wallstreetcn-hot
微博
weibo
雪球
xueqiu
,
xueqiu-hotstock
联合早报
zaobao
知乎
zhihu

Source Selection Guide

数据源选择指南

CategoryRecommended 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
分类推荐数据源
科技
hackernews
,
github
,
v2ex
,
juejin
,
ithome
,
linuxdo
财经
xueqiu
,
wallstreetcn
,
cls
,
jin10
,
gelonghui
,
fastbull
综合新闻
toutiao
,
baidu
,
thepaper
,
ifeng
,
zaobao
,
cankaoxiaoxi
社交/热点
weibo
,
douyin
,
bilibili
,
zhihu
,
tieba
,
douban
安全
freebuf
产品/设计
producthunt
,
sspai

Environment Variables

环境变量

  • PRODUCTHUNT_API_TOKEN
    - Required for
    producthunt
    source
  • PRODUCTHUNT_API_TOKEN
    - 使用
    producthunt
    数据源时必填

Known Limitations

已知限制

  • linuxdo
    ,
    linuxdo-latest
    ,
    linuxdo-hot
    may return 403 Forbidden (Cloudflare)
  • Some Chinese sources may be inaccessible from outside mainland China
  • linuxdo
    linuxdo-latest
    linuxdo-hot
    可能返回403 Forbidden错误(Cloudflare拦截)
  • 部分中文数据源在中国大陆以外地区可能无法访问

Working with Results

结果处理示例

bash
newsnow hackernews --json | jq '.[].title'
newsnow hackernews --json | jq '.[:5]'
newsnow weibo --json | jq '.[] | "\(.title) \(.url)"'
bash
newsnow hackernews --json | jq '.[].title'
newsnow hackernews --json | jq '.[:5]'
newsnow weibo --json | jq '.[] | "\(.title) \(.url)"'