toutiao-news-trends
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese今日头条新闻热榜
Toutiao News Hot Ranking
技能概述
Skill Overview
此技能用于抓取今日头条 PC 端热榜(hot-board)数据,包括:
- 热点标题
- 热度值(HotValue)
- 详情跳转链接(去除冗余查询参数,便于分享)
- 封面图(如有)
- 标签(如“热门事件”等)
数据来源:今日头条 (www.toutiao.com)
This skill is used to capture data from Toutiao PC-side hot-board, including:
- Hot title
- HotValue
- Detail jump link (redundant query parameters are removed for easy sharing)
- Cover image (if available)
- Tags (such as "hot event", etc.)
Data source: Toutiao (www.toutiao.com)
获取热榜
Get Hot Ranking
重要说明:
- ⚠️ 默认输出格式为规范 Markdown 格式(符合输出格式规范要求)
- 如需原始 JSON 数据,请使用 命令
json
获取热榜(默认 10 条,按榜单顺序返回,格式化输出):
bash
node scripts/toutiao.js获取热榜前 N 条(格式化输出):
bash
node scripts/toutiao.js 10Important Notes:
- ⚠️ The default output format is standard Markdown format (compliant with output format specification requirements)
- If you need raw JSON data, please use the command
json
Get hot ranking (default 10 entries, returned in ranking order, formatted output):
bash
node scripts/toutiao.jsGet the first N entries of the hot ranking (formatted output):
bash
node scripts/toutiao.js 10或
或
node scripts/toutiao.js format 10
获取热榜(JSON 格式,默认 50 条):
```bash
node scripts/toutiao.js json获取热榜前 N 条(JSON 格式):
bash
node scripts/toutiao.js json 20node scripts/toutiao.js format 10
Get hot ranking (JSON format, default 50 entries):
```bash
node scripts/toutiao.js jsonGet the first N entries of the hot ranking (JSON format):
bash
node scripts/toutiao.js json 20返回数据字段说明
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[] | 兴趣分类英文(如有) |
| categoriesCN | string[] | 兴趣分类中文(已自动映射) |
| Field | Type | Description |
|---|---|---|
| rank | number | Ranking on the list (starting from 1) |
| title | string | Hot title |
| popularity | number | HotValue (converted to number; 0 if parsing fails) |
| link | string | Hot detail link (query/hash has been cleaned) |
| cover | string | null | Cover image URL (if available) |
| label | string | null | Tag/identifier (if available) |
| clusterId | string | Aggregation ID (stringified) |
| categories | string[] | English interest categories (if available) |
| categoriesCN | string[] | Chinese interest categories (automatically mapped) |
分类映射说明
Category Mapping Description
英文分类已自动映射为中文,例如:
- → 财经
finance - → 汽车
car - → 科技
technology - → 娱乐
entertainment - → 体育
sports - → 社会
society - → 国际
international - 等等...
English categories have been automatically mapped to Chinese, for example:
- → 财经
finance - → 汽车
car - → 科技
technology - → 娱乐
entertainment - → 体育
sports - → 社会
society - → 国际
international - etc...
输出格式规范
Output Format Specification
默认输出格式
Default Output Format
⚠️ 重要:此技能默认输出为以下规范格式,无需额外配置。
AI助手在展示今日头条热点新闻时,应遵循以下统一格式:
undefined⚠️ Important: The default output of this skill is the following standard format, no additional configuration is required.
When the AI assistant displays Toutiao hot news, it should follow the following unified format:
undefined今日头条最新热点新闻 Top N
今日头条最新热点新闻 Top N
🔥 热度前十名
N. 新闻标题 热度:X万 分类:分类标签 查看详情
...
**格式要求**:
- 标题使用加粗(**标题**)
- 热度以"万"为单位显示(如:4651万)
- 分类如有多个用"/"分隔,无分类显示"-"
- 链接使用尖括号包裹 `[查看详情](<链接>)`,避免特殊字符导致 Markdown 解析问题
- 每条新闻之间用 `---` 分隔
- 默认显示前10条热榜🔥 热度前十名
N. 新闻标题 热度:X万 分类:分类标签 查看详情
...
**Format Requirements**:
- Titles are bolded (**title**)
- Popularity is displayed in units of "ten thousand" (e.g.: 4651 ten thousand)
- If there are multiple categories, separate them with "/", display "-" if there is no category
- Links are wrapped in angle brackets `[查看详情](<link>)` to avoid Markdown parsing problems caused by special characters
- Each news item is separated by `---`
- The first 10 hot ranking entries are displayed by default注意事项
Notes
- 该接口为网页端公开接口,返回结构可能变动;若字段缺失可适当容错
- 访问频繁可能触发风控,脚本内置随机 User-Agent 与超时控制
- 该接口不提供文章摘要/概要信息,只能获取标题、热度、链接等基本信息
- This interface is a public web interface, the returned structure may change; appropriate fault tolerance is allowed if fields are missing
- Frequent access may trigger risk control, the script has built-in random User-Agent and timeout control
- This interface does not provide article summary information, only basic information such as title, popularity, link, etc. can be obtained
作者介绍
Author Introduction
- 爱海贼的无处不在
- 我的微信公众号:无处不在的技术
- 爱海贼的无处不在
- My WeChat Official Account: 无处不在的技术