mcpField
D
dailyhot-api

dailyhot-api

github.com/giggle-officialProductivity055 installsUpdated 1d ago
Repository

About dailyhot-api

A skill for collecting and organizing real-time trending lists through a locally run DailyHotApi service. It can ensure the service is running and supports batch collection across platforms.

Key features

  1. 01Aggregate trending lists from 40+ platforms
  2. 02Check and start the local service
  3. 03Fetch trending data by platform
  4. 04Collect trends from multiple platforms in batches

Use cases

  1. 01Gather popular topics from social platforms
  2. 02Compile news and technology-business rankings
  3. 03Collect trends from several platforms in batches
  4. 04Pass trend data to a subsequent workflow

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/giggle-official/skills --skill dailyhot-api

After installing, type/dailyhot-apiin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

scripts/
collect_trends.py
ensure_running.sh
stop.sh

Details

From the project README

全网热榜聚合 API

来源:imsyy/DailyHotApi · 本地自部署,零成本,零配置

本地运行的全网热榜聚合服务,覆盖 40+ 平台实时热搜数据。安装 agent 时自动部署,用户无需任何额外操作。


关键规则

  • 调用前必须确保服务已启动(执行 bash scripts/ensure_running.sh)
  • 所有 HTTP 请求添加超时:-m 15
  • 请求失败不重试 — 报告错误并提示用户
  • 默认端口:6688,可通过环境变量 DAILYHOT_PORT 修改

服务管理

确保服务运行(每次使用前调用)
bash scripts/ensure_running.sh

自动完成以下操作:

  1. 检查 DailyHotApi 是否已安装,未安装则自动 npm install
  2. 检查服务是否运行中,未运行则自动启动
  3. 等待服务就绪并返回状态
停止服务
bash scripts/stop.sh

支持的平台(40+)

平台接口路径类别
抖音/douyin热点榜
微博/weibo热搜榜
知乎/zhihu热榜
B站/bilibili热门榜
百度/baidu热搜榜
今日头条/toutiao热榜
快手/kuaishou热点榜
豆瓣电影/douban-movie新片榜
百度贴吧/tieba热议榜
腾讯新闻/qq-news热点榜
新浪新闻/sina-news热点榜
网易新闻/netease-news热点榜
澎湃新闻/thepaper热榜
36氪/36kr热榜
虎嗅/huxiu24小时
IT之家/ithome热榜
少数派/sspai热榜
稀土掘金/juejin热榜

数据获取

获取单平台热榜
curl -s -m 15 "http://localhost:6688/douyin"
返回格式
{
  "code": 200,
  "name": "douyin",
  "title": "抖音",
  "type": "热点榜",
  "total": 50,
  "updateTime": "2026-03-31T08:09:47.743Z",
  "data": [
    {
      "id": "2449453",
      "title": "热点标题",
      "hot": 12115951,
      "url": "https://www.douyin.com/hot/2449453"
    }
  ]
}
批量获取多平台热榜(推荐用于趋势收集)
# 在脚本中批量调用
python3 scripts/collect_trends.py --platforms douyin weibo toutiao zhihu bilibili baidu

趋势收集工作流

本 skill 在流水线中的位置:阶段 1 — 趋势收集

确保服务运行 → 批量请求多平台热榜 → 汇总并格式化 → 输出到阶段 2
采集策略

每次采集从以下平台拉取数据(可在 config.json 中自定义):

  • 短视频平台:抖音、快手、B站
  • 社交媒体:微博、知乎、百度贴吧
  • 新闻资讯:今日头条、百度、腾讯新闻、澎湃新闻
  • 科技财经:36氪、虎嗅、IT之家

错误处理

情况处理
服务未启动自动执行 ensure_running.sh 启动
单平台请求失败跳过该平台,继续采集其他平台
返回数据为空记录警告,不影响整体流程
端口被占用自动尝试 6689-6699 端口

Comments

Markdown supported