AureliaRen

Watch Douyin — Development skill for Claude Code

Development community

抖音链接 → 完整内容报告的 Claude Code skill:浏览器会话抓流 + /watch 帧提取 + DashScope 转写(国内可达).

How to install Watch Douyin

This entry records only its repository, not the path inside it, so there is no exact command to give. Open AureliaRen/watch-douyin and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Watch Douyin does

抖音链接 → 完整内容报告的 Claude Code skill:浏览器会话抓流 + /watch 帧提取 + DashScope 转写(国内可达)。Douyin link to full multimodal content report.

Alternatives in Development

  • Douyin MCP Server — 提取抖音无水印视频链接,视频文案,douyin-mcp-server,mcp,claude skill,支持龙虾 936 ★
  • /validate — Run full validation on the current finding before writing a report 927 ★
  • Verify Theme — Run the full Graphite quality gate (drift, tokens, contrast, YAML) and report pass/fail 452 ★

README

watch-douyin

把一条抖音分享链接变成**完整的本地内容报告**:语音逐字稿 + 画面帧(含内嵌字幕、配方、UI 细节)。

这是一个 [Claude Code](https://claude.com/claude-code) skill,定位为 [bradautomates/claude-video](https://github.com/bradautomates/claude-video)(`/watch`)的**抖音前置获取器**——`/watch` 本身很优秀,但它的下载层走 yt-dlp,而抖音的墙它过不去。

为什么需要这个(2026-09 实测)

路径 结果
yt-dlp 直连 ❌ Fresh cookies are needed(Cookie 墙)
yt-dlp --cookies-from-browser ❌ Edge 库被运行中的浏览器锁定 / Chrome 新版 Cookie 加密提不出
f2(匿名解析) ❌ Web detail API 403(a_bogus 签名被拒)
iesdouyin 分享页 ❌ 普通 UA 不下发视频数据,爬虫 UA 只给下载引导壳
chrome-devtools MCP 抓流(本方案) ✅ 真实浏览器会话 → 捕获 douyinvod 签名分轨 URL → curl 下载 → ffmpeg 无损合并

工作原理

抖音分享链接
   │ 1. resolve:302 解析出视频 ID
   ▼
chrome-devtools MCP 打开视频页(不登录、不取 Cookie)
   │ 2. list_network_requests 捕获带签名的 DASH 分轨地址
   ▼
douyin_fetch.py mux:下载 media-video-avc1 + media-audio-und-mp4a
   │ 3. ffmpeg -c copy 无损合并(签名 URL 几分钟内有效)
   ▼
本地 video.mp4 → 交给 /watch skill
   │ 4. ffmpeg 抽帧(scene-aware + dedup)+ 音频转写
   ▼
帧(多模态模型直接读) + 转写(DashScope qwen omni ASR)
   → 完整内容报告:结构、关键步骤、画面细节、时间戳

抖音视频**没有字幕轨**,转写必然走 ASR 兜底;国内网络 Groq/OpenAI 不可达,所以本仓库同时提供了 `/watch` 的 **DashScope 后端补丁**(见下)。

安装

# 1. 依赖
#    - Claude Code + chrome-devtools MCP
#    - ffmpeg(winget install Gyan.FFmpeg)
#    - /watch skill:npx skills add bradautomates/claude-video 或手动安装

# 2. 安装本 skill
git clone https://github.com/AureliaRen/watch-douyin.git
mkdir -p ~/.claude/skills && cp -r watch-douyin ~/.claude/skills/fetch-douyin

# 3. 给 /watch 加 DashScope 转写后端(二选一)
#    a) 上游 PR 合并后直接 npx skills update
#    b) 应用本仓库附带的补丁:
cd ~/.claude/skills/watch && git apply /path/to/watch-douyin/patches/dashscope-backend.patch
#    (非 git 安装就把 patch 当改动说明手工对应)

# 4. 转写配置
pip install dashscope
echo 'DASHSCOPE_API_KEY=你的百炼Key' >> ~/.config/watch/.env

用法

对 Claude 说:

用 fetch-douyin 处理这条链接,看完告诉我内容:https://v.douyin.com/xxxxx/

或手动分步:

# 解析短链
python scripts/douyin_fetch.py resolve --link "https://v.douyin.com/xxxxx/"
# (chrome