mcpField
T
toutiao-news-trends

toutiao-news-trends

github.com/wuchubuzai2018Productivity43351 installsUpdated 8w ago
Repository

About toutiao-news-trends

A skill that retrieves trending topics from Toutiao’s PC hot board. It returns ranked titles, popularity values, cleaned detail links, and optional cover images, labels, and categories.

Key features

  1. 01Fetch Toutiao hot-board data
  2. 02Limit results to a requested count
  3. 03Return rank and popularity
  4. 04Clean detail links
  5. 05Include optional covers and labels

Use cases

  1. 01Checking the current Toutiao trend list
  2. 02Retrieving the top entries for review
  3. 03Sharing cleaned links to trending stories

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/wuchubuzai2018/expert-skills-hub --skill toutiao-news-trends

After installing, type/toutiao-news-trendsin Claude Code to confirm it loaded.

Bundled filesscripts/toutiao.js

Details

From the project README

今日头条新闻热榜

技能概述

此技能用于抓取今日头条 PC 端热榜(hot-board)数据,包括:

  • 热点标题
  • 热度值(HotValue)
  • 详情跳转链接(去除冗余查询参数,便于分享)
  • 封面图(如有)
  • 标签(如“热门事件”等)

数据来源:今日头条 (www.toutiao.com)

获取热榜

获取热榜(默认 50 条,按榜单顺序返回):

node scripts/toutiao.js hot

获取热榜前 N 条:

node scripts/toutiao.js hot 10

返回数据字段说明

字段类型说明
ranknumber榜单排名(从 1 开始)
titlestring热点标题
popularitynumber热度值(HotValue,已转为数字;解析失败时为 0)
linkstring热点详情链接(已清理 query/hash)
coverstring | null封面图 URL(如有)
labelstring | null标签/标识(如有)
clusterIdstring聚合 ID(字符串化)
categoriesstring[]兴趣分类(如有)

注意事项

  • 该接口为网页端公开接口,返回结构可能变动;若字段缺失可适当容错
  • 访问频繁可能触发风控,脚本内置随机 User-Agent 与超时控制

作者介绍

  • 爱海贼的无处不在
  • 我的微信公众号:无处不在的技术

Comments

Markdown supported