Skill Overview
This skill is used to scrape Toutiao PC hot-board data, including:
- Trending title
- Hot value (HotValue)
- Detail jump link (redundant query parameters removed for easy sharing)
- Cover image (if any)
- Tags (such as "Hot Event", etc.)
Data source: Toutiao (www.toutiao.com)
Get trending list
Important Notes:
- ⚠️ The default output format is standardized Markdown format(meets the output format specification requirements)
- If you need raw JSON data, please use
jsoncommand
Get trending list (default 10 items, returned in list order, formatted output):
node scripts/toutiao.js
Get the top N items of the trending list (formatted output):
node scripts/toutiao.js 10
# 或
node scripts/toutiao.js format 10
Get trending list (JSON format, default 50 items):
node scripts/toutiao.js json
Get the top N items of the trending list (JSON format):
node scripts/toutiao.js json 20
Returned Data Field Description
| Field | Type | Description |
|---|---|---|
| rank | number | List ranking (starting from 1) |
| title | string | Trending title |
| popularity | number | Hot value (HotValue, converted to a number; 0 if parsing fails) |
| link | string | Trending detail link (query/hash cleaned) |
| cover | string | null | Cover image URL (if any) |
| label | string | null | Tag/identifier (if any) |
| clusterId | string | Aggregation ID (stringified) |
| categories | string[] | Interest category in English (if any) |
| categoriesCN | string[] | Interest category in Chinese (automatically mapped) |
Category Mapping Description
English categories have been automatically mapped to Chinese, for example:
finance→ Financecar→ Automotivetechnology→ Technologyentertainment→ Entertainmentsports→ Sportssociety→ Societyinternational→ International- and so on...
Output Format Specification
Default Output Format
⚠️ Important: This skill outputs in the following standardized format by default, with no additional configuration required.
When displaying Toutiao hot news, the AI assistant should follow the following unified format:
## 今日头条最新热点新闻 Top N
**🔥 热度前十名**
N. **新闻标题**
热度:X万
分类:分类标签
[查看详情](<链接>)
---
...
Format Requirements:
- Titles use bold (Title)
- Hot value is displayed in units of "ten thousand" (e.g., 4651万)
- If there are multiple categories, separate them with "/"; if there is no category, display "-"
- Links are wrapped in angle brackets
[查看详情](<链接>), to avoid Markdown parsing issues caused by special characters - Separate each news item with
---Separate - Display the top 10 trending items by default
Notes
- This interface is a public web interface, and the returned structure may change; if fields are missing, appropriate fault tolerance can be applied
- Frequent access may trigger risk control; the script has built-in random User-Agent and timeout control
- This interface does not provide article summaries/overviews; only basic information such as title, hot value, and link can be obtained
Author Introduction
- The One Piece fans are everywhere
- My WeChat official account: 无处不在的技术