← 返回 Skills 市场
musofan

Douyin Download

作者 Muso Z. Fan · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
93
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install musofan-douyin-download
功能描述
Download Douyin (Chinese TikTok) videos to local MP4 files. Use when the user shares a Douyin video URL or asks to download or save a Douyin/TikTok video. Wo...
使用说明 (SKILL.md)

Douyin Download | 抖音视频下载

Save any Douyin video to MP4 — no watermarks, no limits.

特性 | Features

  • 🎬 高清下载 — 1080p MP4,无水印 / No watermark, full 1080p
  • 🤖 全自动 — 只需发链接给我,剩下的我来 / Just send the link, I'll handle the rest
  • 🔒 隐私安全 — Cookie 来自你自己的浏览器,不经过第三方 / Your cookies stay local, no third-party involved
  • 即下即用 — 拦截真实视频直链,直接下载 / Intercepts real video stream, downloads directly

使用前提 | Prerequisites

项目 说明
Chrome 扩展 安装 Get cookies.txt (可选,如果无法下载再装)
导出 Cookie 访问 douyin.com → 点扩展 → Export → 保存到 sessions/cookies/cookies.txt
代理 Clash Verge 或任意 HTTP 代理,运行在 127.0.0.1:7897
Python 包 playwright, requests

注意:Cookie 只需要导出一次,除非过期。文件保存在你自己的电脑上,不会上传。

使用方法 | Usage

发给我任意抖音链接即可:

https://www.douyin.com/video/7627894054088461611

我会自动下载并保存到 sessions/video-download/ 目录。

或者用命令行指定路径:

python skills/douyin-download/scripts/download.py \x3Cvideo_url> [output_path] [cookie_file]

工作原理 | How It Works

1. Playwright 启动无头浏览器 → 加载你的 cookies
2. 访问抖音页面 → Douyin 以为是真实浏览器
3. 拦截 douyinvod.com 视频响应 → 拿到真实 MP4 直链
4. 直接下载 MP4 文件 → 不经过任何第三方服务器

为什么不用 yt-dlp? 因为抖音有额外的浏览器指纹验证,导出的 cookie 缺少签名信息,yt-dlp 会报 "Fresh cookies needed"。Playwright 用真实浏览器环境解决这个限制。

输出 | Output

下载完成后,你会看到:

  • 文件路径:sessions/video-download/video.mp4
  • 文件大小、时长、分辨率
  • 下载进度条

注意 | Notes

  • 视频直链有过期签名,请尽快下载 / Video URLs expire quickly, download promptly
  • 如果下载失败,尝试重新导出一次新鲜 cookies / If it fails, re-export fresh cookies from douyin.com
  • 支持抖音和 TikTok 链接 / Supports both Douyin and TikTok URLs
安全使用建议
This skill appears to do what it says, but it requires you to export and supply your browser cookies (sensitive). Only use cookies from a browser/profile you control and do not share them. Confirm the HTTP proxy (127.0.0.1:7897) is truly local and not forwarding traffic to a remote host — a malicious or misconfigured proxy could capture your cookies or video requests. Install Playwright and its browsers from official sources before running. Be aware that downloading videos may violate the service's terms of use or copyright. If you prefer, run the script in a disposable environment and pass explicit cookie and output paths instead of relying on defaults (the defaults use the author's Windows paths).
功能分析
Type: OpenClaw Skill Name: musofan-douyin-download Version: 1.0.0 The skill is a utility for downloading Douyin/TikTok videos using Playwright and local browser cookies to bypass anti-bot protections. The code in `scripts/download.py` correctly implements the described functionality, handling cookies locally and intercepting video stream URLs without any evidence of data exfiltration, unauthorized network calls, or malicious execution. While it contains hardcoded Windows file paths (e.g., `C:\Users\musof\...`) which may cause execution errors on other systems, there are no indicators of intentional harm or security bypasses.
能力评估
Purpose & Capability
Name/description, SKILL.md, and the included Python script all align: they load browser cookies, drive Playwright to intercept a douyinvod.com MP4 URL, and download the video. No unrelated credentials, binaries, or services are requested.
Instruction Scope
Instructions are scoped to loading an exported cookies file, running Playwright, and downloading the intercepted MP4. This is consistent with the purpose. Note: the skill requires the user to export potentially sensitive cookies and to run a local HTTP proxy (127.0.0.1:7897) — both are explicitly documented and are necessary for the technique described.
Install Mechanism
No install spec is provided (instruction-only plus a script). Dependencies (playwright, requests) are documented in the README; nothing is downloaded or executed automatically by the skill itself.
Credentials
No environment variables or external credentials are requested. The script requires an exported browser cookie file (sensitive but justified). It also hardcodes a proxy (http://127.0.0.1:7897); the SKILL.md explains this, but users should confirm the proxy is local and trustworthy before running.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system-wide settings, and only writes downloaded MP4 files to disk. The default paths are author-specific but can be overridden via command-line arguments.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install musofan-douyin-download
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /musofan-douyin-download 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Download Douyin videos to MP4 using Playwright with exported browser cookies. No watermark, no third-party.
元数据
Slug musofan-douyin-download
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Douyin Download 是什么?

Download Douyin (Chinese TikTok) videos to local MP4 files. Use when the user shares a Douyin video URL or asks to download or save a Douyin/TikTok video. Wo... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 93 次。

如何安装 Douyin Download?

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

Douyin Download 是免费的吗?

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

Douyin Download 支持哪些平台?

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

谁开发了 Douyin Download?

由 Muso Z. Fan(@musofan)开发并维护,当前版本 v1.0.0。

💬 留言讨论