Fetch trending news and hot topics from 8 sources. Returns news items with title, URL, hot metric, and rank.
Run hotnews --help for usage details.
Follow this pattern:
--json for machine-readable output.NeedCommandWhenSee all sourceshotnews listDon't know source namesGet newshotnews <source>Know the source, want readable outputGet news as JSONhotnews <source> --jsonNeed structured data for processingControl item counthotnews <source> --limit NWant specific number of results (1-50, default 10)
List all available sources.
bash
hotnews list
bash
hotnews baidu
hotnews baidu --json
hotnews weibo --limit 5
hotnews douyin -l 15 --json
FlagShortDescription--jsonOutput as JSON--limit N``-l NNumber of items to return (default: 10, max: 50)
Output fields (JSON mode):
title - News headlineurl - Link to the articlehot - Popularity metric, e.g. "871 stars today", "5.3k" (optional)rank - Position in the ranking (1-based)8 source endpoints:
PlatformIDDescriptionBaidubaiduBaidu real-time search trendsWeiboweiboWeibo real-time trending topicsDouyindouyinDouyin real-time trendingHupuhupuHupu street hot posts36Krkr3636Kr tech news flashesZhihuzhihuZhihu trending questionsJuejinjuejinJuejin developer community hot articlesGitHubgithubGitHub trending open source projects today
CategoryRecommended SourcesGeneral Newsbaidu, weibo, toutiaoSocial/Trendingweibo, douyin, zhihuTech/Developerjuejin, github, kr36Sports/Lifestylehupu
bash
hotnews baidu --json | jq '.[].title'
hotnews baidu --json --limit 5
hotnews weibo --json | jq '.[] | "\(.rank). \(.title) \(.hot // "")"'
hotnews github --json | jq '.[] | "\(.title) - \(.hot)"'