Douyin Comments

抓取抖音单条视频的完整评论区(一级评论 + 全部楼中楼回复)和视频详情,可选下载视频,输出按点赞排序的「评论全文.md」和原始 JSON。在用户本人已登录的 Chrome 里运行(Claude in Chrome 扩展),借页面自带 SDK 签名,不需要 TikHub、Playwright 或 a_bogus 逆向。用户给出抖音视频链接(douyin.com/video/…、带 modal_id 的主页链接、v.douyin.com 短链),并说"看评论区""抓评论""拉评论""评论区有什么质疑/疑问""参考评论区"时使用。只适用于抖音单条视频;小红书、B 站、批量采集博主全部作品不适用。

283 stars 73 forksTesting & QA

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add Pluviobyte/douyin-comments --skill douyin-comments
Manual install
git clone --depth 1 https://github.com/Pluviobyte/douyin-comments.git /tmp/douyin-comments
mkdir -p ~/.claude/skills
cp -r /tmp/douyin-comments/. ~/.claude/skills/douyin-comments

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 抖音评论区抓取

## 原理(为什么这样做)

- 抖音 Web 接口要带 a_bogus 签名、msToken、uifid、x-tt-argus 等风控参数。页面里的 SDK 会给页面内发出的 XHR 自动补签名,所以请求都在用户的真实 Chrome 页面里发,指纹和登录态都是真的。
- 只带 `device_platform/aid` 直接调楼中楼接口,会**立刻弹文字点选验证码**,请求挂起(2026-10-30 实测)。原因是缺了页面正常请求才有的公共参数(channel、version_code、浏览器信息、msToken 等)。所以:
  - **主路线** `page_fetch.js`:先拦截页面自己发出的一次真实评论请求当模板,之后只替换 `aweme_id / cursor / comment_id`,其余参数照抄。
  - **兜底路线** `page_ui_expand.js`:在评论区逐个点「展开N条回复」,由页面自己发请求,我们只截获响应。慢,但实测不触发风控。
- 思路借鉴 MediaCrawler(公共参数集、x-tt-argus/uifid、先一级后逐楼、请求间 sleep)。它的许可证是非商业学习许可,**不要复制它的代码或 douyin.js**。

## 硬规则

- **验证码绝不代点**。出现验证码就停下,请用户在 Chrome 里手动完成,然后继续。
- **节奏**:请求间隔 2~4 秒随机,每 15 次请求额外停 8~15 秒。不要为了快去改小间隔;同一视频不要重复整轮重抓(触发验证码的主因之一)。
- **隐私墙**:输出默认写到当前项目的 `.internal/抖音评论/<aweme_id>/`。源链接、作者、原文评论只留在 `.internal/`;给成稿用的归纳文件不写源信息。
- javascript_tool 约 45 秒超时、输出约 1000 字截断:长任务一律是不 await 的后台 IIFE,进度挂在 `window.__dyc` 上轮询,数据经本地接收服务落盘。
- 用完关闭自己开的标签页,并停掉接收服务。

## 步骤

下文 `$SK` = 本 skill 目录,`$OUT` = 输出目录。

### 1. 解析视频 ID,启动接收服务

- `douyin.com/video/<id>` → id;主页链接带 `modal_id=<id>` → id;`v.douyin.com/…` 短链先在 Chrome 打开,看跳转后的 URL。
- 后台启动接收服务(`run_in_background`,端口被占就换一个,并在页面设 `window.__DYC_RECV`):
  ```bash
  python3 -I "$SK/scripts/recv.py" --out "$OUT/raw" --port 8765
  ```

### 2. 打开页面,注入拦截

1. `tabs_context_mcp` → `tabs_create_mcp` 新开标签页 → navigate 到 `https://www.douyin.com/video/<id>`。扩展未连接时,请用户在 Claude Code 里执行 `/chrome` 连接。
2. 用 javascript_tool 执行 `page_hook.js` 的全文(读文件后原样传入),返回 `hooked`。**刷新或跳转页面后必须重新注入。**
Read the full skill on GitHub

Details

Skill name
douyin-comments
Repo updated
31 October 2026

FAQ

What does the Douyin Comments skill do?

抓取抖音单条视频的完整评论区(一级评论 + 全部楼中楼回复)和视频详情,可选下载视频,输出按点赞排序的「评论全文.md」和原始 JSON。在用户本人已登录的 Chrome 里运行(Claude in Chrome 扩展),借页面自带 SDK 签名,不需要 TikHub、Playwright 或 a_bogus 逆向。用户给出抖音视频链接(douyin.com/video/…、带 modal_id 的主页链接、v.douyin.com 短链),并说"看评论区""抓评论""拉评论""评论区有什么质疑/疑问""参考评论区"时使用。只适用于抖音单条视频;小红书、B 站、批量采集博主全部作品不适用。

How do I install the Douyin Comments skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add Pluviobyte/douyin-comments --skill douyin-comments. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Douyin Comments popular?

It lives in Pluviobyte/douyin-comments, which has 283 GitHub stars and 73 forks.

Related skills

Smell Check

241

Zhen-Bo/smell-check

Runs a smell-first audit on a user-chosen path set: measures structure metrics, applies a named size profile, and reports code smells and test smells with evidence strength. Use for smell audit, code smell scan, whole-repo audit, tech debt scan, test smell check, maintainability audit, or duplication and nesting checks. Do not use for PR review, merge advice, implementing fixes, writing new features, or lint/format-only passes.

Testing & QA19

Xunit Skill

386

LambdaTest/agent-skills

Generates xUnit.net tests in C#. Covers Fact/Theory, constructor injection, IClassFixture, and FluentAssertions. Use when user mentions "xUnit", "[Fact]", "[Theory]", "Assert.Equal", "C# xUnit". Triggers on: "xUnit", "[Fact]", "[Theory]", "Assert.Equal C#", "xUnit.net".

Testing & QAIn 1 list76

Plaid

219

BuildGreatProducts/plaid

Product Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is

Testing & QA26

Xcuitest Skill

386

LambdaTest/agent-skills

Generates XCUITest UI tests for iOS/iPadOS apps in Swift. Apple's native testing framework for reliable, fast UI automation. Supports local simulators and TestMu AI cloud real devices. Use when user mentions "XCUITest", "XCTest", "iOS UI test", "Swift test", "XCUIApplication". Triggers on: "XCUITest", "XCTest UI", "iOS UI test", "Swift UI test", "XCUIApplication", "TestMu".

Testing & QAIn 1 list76

Elves

223

aigorahub/elves

Autonomous multi-batch development agent for long unattended runs, reviewed-PR landing, Cobbler-first orchestration, and optional Fugu, Manus, Grok, Devin, or Oh My Pi (omp) provider shortcuts. Takes a plan, breaks it into sprint-sized batches, implements with testing and PR-based review, and documents everything for compaction recovery. Use when user says "run overnight", "I'm going offline", "implement this plan", "keep going without me", "do not stop", "I'll be back in the morning", "run this end-to-end", asks to get a subagent to review the diff from main, read PR comments, test, fix, and

Testing & QA16

Webdriverio Skill

386

LambdaTest/agent-skills

Generates WebdriverIO (WDIO) automation tests in JavaScript or TypeScript. Supports local and TestMu AI cloud. Use when user mentions "WebdriverIO", "WDIO", "wdio.conf", "browser.url", "$", "$$". Triggers on: "WebdriverIO", "WDIO", "wdio", "browser.$".

Testing & QAIn 1 list76

Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.