← Back to Skills Marketplace
musofan

Douyin Download

by Muso Z. Fan · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
93
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install musofan-douyin-download
Description
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...
README (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
Usage Guidance
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).
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install musofan-douyin-download
  3. After installation, invoke the skill by name or use /musofan-douyin-download
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: Download Douyin videos to MP4 using Playwright with exported browser cookies. No watermark, no third-party.
Metadata
Slug musofan-douyin-download
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 93 downloads so far.

How do I install Douyin Download?

Run "/install musofan-douyin-download" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Douyin Download free?

Yes, Douyin Download is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Douyin Download support?

Douyin Download is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Douyin Download?

It is built and maintained by Muso Z. Fan (@musofan); the current version is v1.0.0.

💬 Comments