Skill Overview
This skill is used to scrape the Toutiao PC-side hot list (hot-board) data, including:
- Hot topic title
- Popularity 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 hot list
Get hot list (default 50 items, returned in list order):
node scripts/toutiao.js hot
Get top N items of the hot list:
node scripts/toutiao.js hot 10
Returned data field descriptions
| Field | Type | Description |
|---|---|---|
| rank | number | List ranking (starting from 1) |
| title | string | Hot topic title |
| popularity | number | Popularity value (HotValue, already converted to a number; 0 when parsing fails) |
| link | string | Hot topic detail link (query/hash already cleaned) |
| cover | string | null | Cover image URL (if any) |
| label | string | null | Tags/identifiers (if any) |
| clusterId | string | Aggregation ID (stringified) |
| categories | string[] | Interest category (if any) |
Notes
- This API is a public web-side API, and the return structure may change; if fields are missing, appropriate fault tolerance may be applied
- Frequent access may trigger risk control; the script has built-in random User-Agent and timeout control
Author Introduction
- Ubiquitous One Piece Fan
- My WeChat official account: Ubiquitous Technology