douyin-save

Douyin save and parse skill: used when a user provides a Douyin link (v.douyin.com short link or www.douyin.com video/article link) and wants to download watermark-free videos or article images, or parse video title/author/likes/comments/shares and other statistics. Automatically detects video vs. article types: videos downloaded without watermark; articles download up to the first 3 images and indicate remaining count. Triggered by intents like "download this Douyin", "save this video", or "parse Douyin link".

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "douyin-save" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3f4b0a619cac47ab91325a4a2bf278860cb5604d7e5c74ce0f16730c2602fec2. Verify the upstream source and version against https://skillhub.cn/skills/user_8dd18822/douyin-save before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Douyin save and parse skill: used when a user provides a Douyin link (v.douyin.com short link or www.douyin.com video/article link) and wants to download watermark-free videos or article images, or parse video title/author/likes/comments/shares and other statistics. Automatically detects video vs. article types: videos downloaded without watermark; articles download up to the first 3 images and indicate remaining count. Triggered by intents like "download this Douyin", "save this video", or "parse Douyin link".

0 Downloads

Introduction source: third_party · user_8dd18822 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: douyin-save
description: 当用户提供抖音链接(v.douyin.com 短链或 www.douyin.com 视频/图文链接),  希望下载无水印视频或图文图片、或解析视频标题/作者/点赞评论分享等统计数据时,使用此技能。  自动识别视频与图文类型:视频去除水印后下载,图文最多下载前 3 张并提示剩余数量。即使用户只说“下载这个抖音”“保存这条视频”“解析抖音链接”,只要意图是获取抖音内容,也应触发此技能。
display_name: "抖音下载"
version: 1.0.0

抖音下载 (Douyin Save)

从抖音网页解析并下载内容,支持无水印视频与图文图片两种类型。核心解析逻辑由随技能附带的 Node.js 脚本 scripts/douyin-parse.cjs 完成,本说明指导如何调用它并如何处理返回结果。

何时使用

  • 用户提供抖音链接(如 https://v.douyin.com/xxxx/ 或 https://www.douyin.com/video/xxxx), 要求下载、保存、解析其中的视频或图文。
  • 需要获取视频/图文的标题、作者、点赞/评论/分享数等元数据。
  • 用户口语化表达:“帮我把这个抖音存下来”“去个水印下载这条视频”“这条图文有几张图”。

前置要求

  • 已安装 Node.js(脚本使用 Node 内置 fetch,无需额外依赖 / npm install)。

使用方法

调用附带脚本,传入抖音链接与可选输出目录:

node <技能目录>/scripts/douyin-parse.cjs "<抖音链接>" [输出目录]
  • 第一个参数:抖音链接(必填)。
  • 第二个参数:输出目录(可选,默认 ./output,即当前工作空间下的 output 目录)。
  • 进度信息打印到 stderr,解析结果 JSON 打印到 stdout,因此可直接把脚本的 stdout 当作结构化结果解析。

例如(在用户工作空间内执行,文件保存到当前目录的 output/):

node ~/.workbuddy/skills/douyin-save/scripts/douyin-parse.cjs "https://v.douyin.com/xxxx/" ./output

返回格式(解析结果 JSON)

脚本向 stdout 输出一个 JSON 对象,字段如下:

{
  "type": "video | images",
  "parseId": "作品ID",
  "title": "标题",
  "author": { "nickname": "作者昵称", "avatar": "头像URL" },
  "statistics": { "digg": 点赞数, "comment": 评论数, "share": 分享数 },
  "images": ["图片URL1", "图片URL2", "..."],
  "cover": "封面URL",
  "videoUrl": "视频URL(去除水印)",
  "savedFiles": ["/绝对路径/xxx.mp4", "..."],
  "note": "",
  "error": ""
}
  • 视频类型:type="video",videoUrl 为去水印后的真实地址,images 为空数组,savedFiles 含一个 .mp4 路径。
  • 图文类型:type="images",videoUrl 为空字符串,images 为全部图片 URL 数组,savedFiles 含已下载的图片路径。

处理返回结果的规则

  1. 成功(无 error):向用户说明已下载的内容类型与保存路径(savedFiles)。
  2. 图文 > 3 张:脚本只下载前 3 张,并在 note 中提示剩余数量(如“还有 4 张图片未发送”)。 务必把 note 转述给用户,并说明完整图片数(images.length)。
  3. 视频下载失败:savedFiles 为空且 note 含提示。告知用户可能需要登录后访问,或链接已失效/受限。
  4. error 非空:解析或抓取失败(如页面需要登录、链接失效、网络受限)。把错误原因如实告知用户, 不要假装下载成功。

技术细节(供排障参考)

  • 使用移动端 User-Agent 模拟手机访问,提升解析成功率。
  • 从页面 window._ROUTER_DATA 中提取作品数据,兼容 video(...) / note(...) 等动态 key。
  • 短链 v.douyin.com/xxx 由脚本自动跟随 302 重定向到完整 URL。
  • 去水印原理:视频播放地址经 302 跳转到 CDN,跳转目标含 playwm(水印),将 playwm 替换为 play 即得到无水印地址。
  • 下载直接落盘为最终文件,无本地临时文件残留。

注意事项

  • 视频/图片 URL 是临时的,可能过期;下载在解析后立即进行,请勿长时间延迟。
  • 部分内容需登录或受地域/版权限制,未登录时可能解析失败。
  • 下载内容仅供个人学习与备份,请遵守平台规则与相关版权法规,勿用于侵权或商用传播。
  • 下载的文件默认保存到用户工作空间(输出目录),完成后告知用户具体路径。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 解决抖音无水印下载高频刚需
  • 支持视频与图文双类型自动识别
  • 提供完整元数据解析能力
Trigger Precision95/100

Highlights

  • 覆盖多种抖音链接格式与口语化表达
  • 触发边界清晰无歧义
Structure and Standards93/100

Highlights

  • 步骤划分清晰含完整示例
  • frontmatter 完整且文档结构规范
Execution Reliability91/100

Highlights

  • 工具来源明确参数正确
  • 异常处理完整覆盖主要失败场景
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 22
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • v.douyin.com
  • www.douyin.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.