mcpField
3
36kr-hotlist

36kr-hotlist

github.com/36kr-comProductivity195 installsUpdated 18w ago
Repository

About 36kr-hotlist

36kr-hotlist retrieves 36kr’s 24-hour popular article list for readers who want a dated overview. It formats ranked entries with article and author links, publication times, and available summaries.

Key features

  1. 01Query the 24-hour list by date
  2. 02Show article ranks and titles
  3. 03Include authors and publication times
  4. 04Display summaries and article links
  5. 05Retrieve lists for past dates

Use cases

  1. 01Review the current day's popular articles
  2. 02Look up a list from a past date
  3. 03Open an author's linked profile

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/36kr-com/skills --skill 36kr-hotlist

After installing, type/36kr-hotlistin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

api-reference.md
examples.md
scripts/
fetch_hotlist.py
fetch_hotlist.sh

Details

From the project README

36kr 24小时热榜文章查询

快速开始

API 规则
  • URL 模板: https://openclaw.36krcdn.com/media/hotlist/{YYYY-MM-DD}/24h_hot_list.json
  • 请求方式: GET(无需认证)
  • 更新频率: 每小时一次
  • 日期格式: YYYY-MM-DD,例如 2026-03-17
响应数据结构
{
  "date": "2026-03-17",
  "time": 1773740922167,
  "data": [
    {
      "rank": 1,
      "title": "文章标题",
      "author": "作者名",
      "authorUrl": "https://36kr.com/user/xxxx",
      "publishTime": "2025-12-04 10:30:22",
      "content": "文章简介",
      "url": "https://36kr.com/p/xxxx?channel=openclaw"
    }
  ]
}
字段说明
字段类型说明
rankint排名(从 1 开始,最多 15 条)
titlestring文章标题
authorstring作者名
authorUrlstring作者主页链接,可为空
publishTimestring发布时间,格式 yyyy-MM-dd HH:mm:ss
contentstring文章简介
urlstring文章链接(带 ?channel=openclaw 参数)
datestring榜单日期 YYYY-MM-DD
timelong数据生成时间戳(毫秒)

执行流程

  1. 确定查询日期 — 用户不指定则默认今日

  2. 拼接 URL — https://openclaw.36krcdn.com/media/hotlist/{date}/24h_hot_list.json

  3. 发起 GET 请求 — 接口无需 header / cookie

  4. 解析响应 — 取 data 数组,按 rank 升序展示

  5. 格式化输出 — 以信息流列表形式逐条展示,每条格式如下(禁止使用表格):

    **{rank}. [title](url)**
    👤 [author](authorUrl) · 🕐 {publishTime}
    简介:{content}
    
    • 标题须使用 [title](url) 渲染为可点击链接,用户点击直接跳转文章详情页
    • 作者名须使用 [author](authorUrl) 渲染为可点击链接,用户点击跳转作者主页;若 authorUrl 为空则仅展示纯文本作者名
    • URL / authorUrl 不单独展示
    • content 为文章摘要,直接展示在时间行下方;若为空或为纯数字 ID 则省略该行
    • 条目之间空一行分隔,保持信息流阅读节奏

快速示例

Python(3 行):

import httpx, datetime
url = f"https://openclaw.36krcdn.com/media/hotlist/{datetime.date.today()}/24h_hot_list.json"
articles = httpx.get(url).json()["data"]
for a in articles:
    print(f"#{a['rank']} {a['title']} - {a['author']}")

Shell(一行):

curl -s "https://openclaw.36krcdn.com/media/hotlist/$(date +%Y-%m-%d)/24h_hot_list.json" | python3 -m json.tool

工具脚本

脚本用途
fetch_hotlist.pyPython 完整查询脚本,支持传入日期参数
fetch_hotlist.shShell 快速查询脚本,格式化终端输出

参考文档

注意事项

  • 历史日期数据持久保存,可查询任意过去日期
  • 每天榜单最多 15 条
  • 若当天数据未生成,接口返回 404 / NoSuchKey 错误
  • content 字段在部分早期数据中可能为文章 ID 而非正文摘要

Comments

Markdown supported