toutiao-news-trends
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese今日头条新闻热榜
Toutiao News Hot List
技能概述
Skill Overview
此技能用于抓取今日头条 PC 端热榜(hot-board)数据,包括:
- 热点标题
- 热度值(HotValue)
- 详情跳转链接(去除冗余查询参数,便于分享)
- 封面图(如有)
- 标签(如“热门事件”等)
数据来源:今日头条 (www.toutiao.com)
This skill is used to crawl hot list (hot-board) data from the PC version of Toutiao, including:
- Hot topic titles
- Popularity value (HotValue)
- Detail jump links (redundant query parameters removed for easy sharing)
- Cover images (if available)
- Labels (such as "Hot Events", etc.)
Data source: Toutiao (www.toutiao.com)
获取热榜
Get Hot List
获取热榜(默认 50 条,按榜单顺序返回):
bash
node scripts/toutiao.js hot获取热榜前 N 条:
bash
node scripts/toutiao.js hot 10Get the hot list (default 50 items, returned in list order):
bash
node scripts/toutiao.js hotGet the top N items of the hot list:
bash
node scripts/toutiao.js hot 10返回数据字段说明
Return Data Field Description
| 字段 | 类型 | 说明 |
|---|---|---|
| rank | number | 榜单排名(从 1 开始) |
| title | string | 热点标题 |
| popularity | number | 热度值(HotValue,已转为数字;解析失败时为 0) |
| link | string | 热点详情链接(已清理 query/hash) |
| cover | string | null | 封面图 URL(如有) |
| label | string | null | 标签/标识(如有) |
| clusterId | string | 聚合 ID(字符串化) |
| categories | string[] | 兴趣分类(如有) |
| Field | Type | Description |
|---|---|---|
| rank | number | List ranking (starts from 1) |
| title | string | Hot topic title |
| popularity | number | Popularity value (HotValue, converted to number; 0 if parsing fails) |
| link | string | Hot topic detail link (query/hash cleaned) |
| cover | string | null | Cover image URL (if available) |
| label | string | null | Label/identifier (if available) |
| clusterId | string | Aggregation ID (stringified) |
| categories | string[] | Interest categories (if available) |
注意事项
Notes
- 该接口为网页端公开接口,返回结构可能变动;若字段缺失可适当容错
- 访问频繁可能触发风控,脚本内置随机 User-Agent 与超时控制
- This is a public web-side interface, and the return structure may change; proper fault tolerance is required if fields are missing
- Frequent access may trigger risk control; the script has built-in random User-Agent and timeout control
作者介绍
Author Introduction
- 爱海贼的无处不在
- 我的微信公众号:无处不在的技术
- Everywhere Who Loves One Piece
- My WeChat official account: Ubiquitous Technology