douyin-comments
Installation
SKILL.md
Douyin Comments
Use this skill to fetch Douyin video comments into local JSON/JSONL files. A logged-in Douyin browser session is mandatory; public/limited non-login samples are not useful for this workflow. Keep it isolated from the Bilibili workflow and from the existing Douyin download/Feishu sync pipeline unless the user explicitly asks to integrate it later.
Workflow
- Require the user's existing Chrome session with Douyin login state and remote debugging enabled. Use the shared
web-accessCDP proxy athttp://127.0.0.1:3456by default, including large/comment-tree captures. Do not export, print, or save cookies. - Before fetching comments, run
--check-login-onlywhen the CDP port or browser profile is uncertain. - Run the bundled Python script with one of:
--video-url "https://www.douyin.com/video/<aweme_id>"--aweme-id <aweme_id>--video-dir "<downloaded Douyin video directory>"For large videos or when reply threads matter, prefer the bundled Node CDP script. It uses the sharedweb-accessproxy by default and refuses to auto-start a direct Douyin bridge unless explicitly allowed:node scripts\fetch_douyin_comments_cdp.mjs --video-url "https://www.douyin.com/video/<aweme_id>" --out-dir "<dir>"
- Save results locally first. Do not write Feishu by default.
- Use conservative request pacing. Do not run tight loops against Douyin comment endpoints.
- Report the JSONL path, JSON bundle path, manifest path, comment count, API pagination state, and any login/anti-bot/reply-fetch limitations.