Skip to content

fix(source): use gateway API for 36kr renqi hot list - #333

Open
imxv wants to merge 1 commit into
ourongxing:mainfrom
imxv:fix/36kr-renqi-api
Open

fix(source): use gateway API for 36kr renqi hot list#333
imxv wants to merge 1 commit into
ourongxing:mainfrom
imxv:fix/36kr-renqi-api

Conversation

@imxv

@imxv imxv commented Mar 28, 2026

Copy link
Copy Markdown

Summary

  • 36kr 网站新增了字节跳动验证码反爬(TTGCaptcha),HTML 抓取方式已失效
  • 改用 36kr gateway API (POST https://gateway.36kr.com/api/mis/nav/home/nav/rank/hot) 获取热榜数据
  • API 返回 JSON 格式,约 50 条数据,包含标题、作者、点赞数、发布时间
  • 移除了不再需要的 dayjs import

Closes #332

Test plan

  • pnpm dev 启动后访问"最热"tab,确认 36氪人气榜正常展示新闻
  • 确认返回数据包含标题、作者、点赞信息

36kr added ByteDance CAPTCHA (TTGCaptcha) anti-scraping protection,
making HTML scraping via Cheerio no longer viable. Switch to their
gateway API endpoint which returns JSON data without CAPTCHA.

Closes ourongxing#332
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

36氪人气榜数据源失效(反爬验证码)

1 participant