newsnow

TotalClaw 作者 totalclaw

CLI 工具可从 44 个平台的 66 个来源获取趋势新闻和热门话题。返回包含标题、URL 和元数据的结构化新闻项目。 用于: - 从中国和国际平台获取趋势/热点新闻 - 监控社交媒体、科技、金融和新闻网站的热门话题 - 获取 JSON 格式的结构化新闻数据以进行进一步处理 - 列出可用的新闻来源 需要 npm 安装。某些源需要环境变量 (PRODUCTHUNT_API_TOKEN)。某些来源可能会被 Cloudflare (linuxdo) 阻止。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~sorrycc-newsnow
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~sorrycc-newsnow/file -o sorrycc-newsnow.md
## 概述(中文)

CLI 工具可从 44 个平台的 66 个来源获取趋势新闻和热门话题。返回包含标题、URL 和元数据的结构化新闻项目。
用于:
- 从中国和国际平台获取趋势/热点新闻
- 监控社交媒体、科技、金融和新闻网站的热门话题
- 获取 JSON 格式的结构化新闻数据以进行进一步处理
- 列出可用的新闻来源
需要 npm 安装。某些源需要环境变量 (PRODUCTHUNT_API_TOKEN)。某些来源可能会被 Cloudflare (linuxdo) 阻止。

## 原文

# 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:

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.

| 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.

```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)

## 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 | `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 for `producthunt` source

## Known Limitations

- `linuxdo`, `linuxdo-latest`, `linuxdo-hot` may return 403 Forbidden (Cloudflare)
- Some Chinese sources may be inaccessible from outside mainland China

## Working with Results

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