← 返回 Skills 市场
xbos1314

douyin-downloader-js

作者 深柒 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
415
总下载
1
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install douyin-downloader-js
功能描述
使用 Node.js 从抖音网页解析视频信息并下载,支持视频和图文类型
使用说明 (SKILL.md)

抖音视频下载器 (Node.js 版本)

描述

使用 Node.js 从抖音网页的 window._ROUTER_DATA 中解析视频信息,支持:

  • 视频类型:下载视频并去除水印
  • 图文类型:下载图片(最多3张)

何时使用

在需要下载抖音链接的内容时使用此技能:

  • 下载抖音链接的视频 (v.douyin.com/xxx)
  • 下载抖音链接的图文
  • 解析视频信息(标题、作者、统计数据等)

前置要求

  • Node.js 环境

使用方法

解析并下载

node ~/.openclaw/skills/douyin-downloader-js/script/douyin-parse.cjs "抖音链接" [输出目录]
  • 第一个参数:抖音链接(必填)
  • 第二个参数:输出目录(可选,默认 ./output)

自动识别

脚本会自动识别内容类型:

  • 视频类型:返回 videoUrl,下载视频
  • 图文类型:返回 images 数组,下载图片

图文处理规则

  • 图文数量 ≤ 3张:全部发送
  • 图文数量 > 3张:只发送前3张,告知用户剩余数量
  • 示例:共7张图片 → 发送前3张 → 提示"还有4张图片未发送"

返回格式

视频类型

{
  "parseId": "视频ID",
  "title": "视频标题",
  "author": { "nickname": "作者昵称", "avatar": "头像URL" },
  "statistics": { "digg": 点赞数, "comment": 评论数, "share": 分享数 },
  "images": [],
  "cover": "封面URL",
  "videoUrl": "视频URL(去除水印)"
}

图文类型

{
  "parseId": "图文ID",
  "title": "图文标题",
  "author": { "nickname": "作者昵称", "avatar": "头像URL" },
  "statistics": { "digg": 点赞数, "comment": 评论数, "share": 分享数 },
  "images": ["图片URL1", "图片URL2", ...],
  "cover": "封面URL",
  "videoUrl": ""
}

技术细节

  • 使用移动端 User-Agent 模拟手机访问
  • window._ROUTER_DATA 中提取数据
  • 自动去除视频水印(playwm → play)
  • 短链接自动重定向到完整URL

注意事项

  • 视频/图片 URL 是临时的,可能会过期
  • 某些内容可能需要登录才能访问
  • 下载完成后删除本地临时文件
  • 下载的文件默认保存到你的工作空间
安全使用建议
This skill appears to do what it says: it fetches Douyin pages, parses embedded JSON, and downloads media to disk. Before installing or running it: 1) Only provide trusted Douyin links — the script will follow redirects and can fetch arbitrary HTTP(S) URLs (SSRF risk if run from a server with access to internal networks). 2) Run it in a sandbox or isolated environment (local machine or container) if you care about safety. 3) Review the full script (the CLI/IO portions) yourself to confirm where files are saved and how temporary files are handled. 4) Be mindful of copyright and site terms when downloading content. If you plan to let the agent call this autonomously, restrict the inputs it may pass to avoid unintended network fetches.
功能分析
Type: OpenClaw Skill Name: douyin-downloader-js Version: 1.0.2 The skill is a legitimate Node.js-based utility for parsing and downloading videos and images from Douyin (TikTok China). The code in `script/douyin-parse.cjs` uses standard Node.js libraries (http/https/fs) to fetch web content, extract metadata from JSON embedded in HTML, and save media files locally; it contains no evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name/description, SKILL.md usage, and the included Node.js script align: the script fetches Douyin pages, extracts window._ROUTER_DATA, parses video/image metadata, and supports downloading media. There are no extraneous environment variables, binaries, or unrelated dependencies declared.
Instruction Scope
The SKILL.md instructs running the bundled Node script with a Douyin link and optional output directory — this matches the code. The script performs outbound HTTP(S) requests, follows redirects, and writes downloaded media to disk (workspace). This is expected for a downloader but means untrusted input (arbitrary URLs) could cause the agent to fetch arbitrary endpoints (SSRF risk) or download unexpected content. The SKILL.md does not explicitly restrict input validation or warn about running on networked servers.
Install Mechanism
No install spec — instruction-only with a bundled script. Nothing is downloaded or executed at install time, which is proportionate for this skill.
Credentials
The skill requires no environment variables, credentials, or special config paths. That is appropriate for a web-scraping/downloading utility and matches the SKILL.md and code.
Persistence & Privilege
The skill is not force-included (always: false) and does not request elevated or persistent platform privileges. It can be invoked by the agent (normal default); nothing in the package attempts to modify other skills or global agent configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install douyin-downloader-js
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /douyin-downloader-js 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- 新增 Node.js 解析脚本 script/douyin-parse.cjs,实现自动识别并下载抖音视频与图文内容 - 支持通过命令行参数传入抖音链接和可选输出目录 - 自动区分视频与图文:视频去除水印,图文内容最多发送3张图片并提示剩余数量 - 解析并返回内容详细信息(标题、作者、统计、封面等),输出结构标准化 - 使用移动端 User-Agent 提高兼容性,并支持抖音短链接自动跳转
v1.0.1
- 技能改名为 douyin-downloader-js,描述更新为“无需任何配置,通过 JavaScript 从网页数据中解析视频 URL,实现抖音视频下载” - 下载文件默认保存目录更新为“你的工作空间” - 新增说明:下载成功后将视频发送给用户,并在发送后删除本地视频文件 - 增加下载完成后建议使用 browser action=close 关闭浏览器标签页 - 其余文档内容与结构保持不变
v1.0.0
- Initial release of douyin-downloader. - Enables extraction of Douyin video URLs directly from webpage JavaScript data. - Provides step-by-step instructions to obtain video URLs using browser controls or window variables. - Supports video download via curl with appropriate headers. - Includes examples for single and batch video downloads. - Lists important tips: temporary URLs, authentication, required headers, and default save location.
元数据
Slug douyin-downloader-js
版本 1.0.2
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 3
常见问题

douyin-downloader-js 是什么?

使用 Node.js 从抖音网页解析视频信息并下载,支持视频和图文类型. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 415 次。

如何安装 douyin-downloader-js?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install douyin-downloader-js」即可一键安装,无需额外配置。

douyin-downloader-js 是免费的吗?

是的,douyin-downloader-js 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

douyin-downloader-js 支持哪些平台?

douyin-downloader-js 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 douyin-downloader-js?

由 深柒(@xbos1314)开发并维护,当前版本 v1.0.2。

💬 留言讨论