douyin-downloader

douyin-downloader is a skill for Claude Code from MarecGents/marec-agent-skills. It costs 127 tokens per session (840 once invoked), scanned A, original, MIT.

A script for downloading public Douyin videos, the Chinese version of TikTok, from shared links as watermark-free MP4 files. It extracts the video link from the shared page without requiring login, cookies, or a third-party API.

In plain words
What is it for?
Use it to download supported public Douyin links, including short links and web video URLs, and save the result with a chosen filename.
Why use it?
It removes the need to manually find the original video file or use an account to download it.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to download supported public Douyin links, including short links and web video URLs, and save the result with a chosen filename.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/marecgents/marec-agent-skills/douyin-downloader
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MarecGents/marec-agent-skills --skill douyin-downloader
Clone the repo
git clone --depth 1 https://github.com/MarecGents/marec-agent-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for douyin-downloader

README.md
[![agentmods](https://agentmods.dev/badge/skills/marecgents/marec-agent-skills/douyin-downloader/github.svg)](https://agentmods.dev/skills/marecgents/marec-agent-skills/douyin-downloader)
Your own site
<a href="https://agentmods.dev/skills/marecgents/marec-agent-skills/douyin-downloader"><img src="https://agentmods.dev/badge/skills/marecgents/marec-agent-skills/douyin-downloader/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for douyin-downloader

Your own site · 80×15
<a href="https://agentmods.dev/skills/marecgents/marec-agent-skills/douyin-downloader"><img src="https://agentmods.dev/badge/skills/marecgents/marec-agent-skills/douyin-downloader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 840 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00127 $0.00840
Opus 5 $0.00063 $0.00420
Sonnet 5 $0.00025 $0.00168
Haiku 4.5 $0.00013 $0.00084

Measured 12d ago against content hash 338ca4b26de2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

douyin-downloader scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/douyin_dl.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/douyin-downloader/SKILL.md · 70 lines

What it actually says

抖音视频下载

从抖音分享链接下载无水印原视频。通过解析抖音移动端分享页面的 window._ROUTER_DATA 提取视频直链,无需 cookies、无需登录、无需第三方 API。

脚本位置

  • 主脚本: scripts/douyin_dl.py
  • 运行依赖: Python 3 + requests

安装依赖

pip install requests

使用方法

python scripts/douyin_dl.py "<抖音链接>"
# 指定输出文件名
python scripts/douyin_dl.py "https://v.douyin.com/dl1KJ_7jHuM/" -o 我的视频.mp4

支持链接格式

  • https://v.douyin.com/xxxxx/ — 短链接(推荐)
  • https://www.douyin.com/video/xxxxx — 网页版链接
  • https://www.iesdouyin.com/share/video/xxxxx/ — 国际版链接

工作原理

  1. 解析链接:跟随短链接重定向,提取 video_id
  2. 获取信息:用移动端 UA 请求 iesdouyin.com/share/video/{id}/
  3. 提取数据:从 HTML 中提取 window._ROUTER_DATA JSON(花括号配对解析)
  4. 获取直链:从 loaderData → video_(id)/page → videoInfoRes → item_list[0] → video → play_addr → url_list 获取视频直链
  5. 下载:以平台返回的最高原画质下载无水印视频,保存为 douyin_{video_id}.mp4

输出说明

  • 格式: MP4,原画质(最高 4K,取决于平台返回),无水印
  • 大小: 原画质视频通常 200-500 MB
  • 文件位置: 当前工作目录或 -o 指定路径

如果脚本失效(调试指南)

抖音可能更新页面结构导致提取失败。调试步骤:

  1. 用 iPhone UA 手动访问 https://www.iesdouyin.com/share/video/{video_id}/
  2. 在页面源码中搜索 _ROUTER_DATA
  3. 追踪新的 JSON 路径找到 url_list
  4. 更新 douyin_dl.py 中的提取路径

限制

  • 仅支持公开视频(私密/已删除的视频无法下载)
  • 抖音 API 可能更新导致数据结构变化,届时需适配 _ROUTER_DATA 路径
  • 如需小文件,可在脚本 get_download_url 中优先从 url_list 选取较低分辨率的地址(若平台返回),或后续版本增加清晰度参数
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 70 lines · 127 tokens per session scan A 338ca4b26de2

Subscribe to this mod's changes

douyin-downloader is a skill published in the GitHub repository MarecGents/marec-agent-skills (3 stars, last pushed 14d ago), licensed MIT. It adds 127 tokens to every session and 840 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

fabric-fusion

Multi-model deliberation. Two to 8 distinct models answer in parallel with web-capable tools, then a judge compares consensus, contradictions, coverage gaps, unique insights, and blind spots. Act mode runs 1–4 read-only references, then one actor reconciles and executes. Use when the cost of being wrong justifies…

monotykamary/pi-fabric · 74 tokens

fabric-rlm

Recursively decomposes oversized tasks into bounded child Pi agents with fresh context windows. Use for whole-repo audits, massive-context analysis, and multi-file refactors that do not fit one context.

monotykamary/pi-fabric · 44 tokens

fabric-exec

Python-only troubleshooting and advanced host API reference for fabricexec. Routine pi. coding calls are documented by ambient guidance; load this skill only after an argument-shape error or when an advanced surface needs exact contracts.

monotykamary/pi-fabric · 46 tokens

fabric-schema

Uses Fabric's typed Schema evidence loop and, when enabled, its bounded local-file transaction channel. Use when surprise must void a plan and mutation claims need explicit postconditions.

monotykamary/pi-fabric · 37 tokens

fabric-workflow

Runs a dynamic Pi Fabric workflow with code-held phases, fan-out, pipelines, structured agents, and best-effort verification. Use for large audits, migrations, parallel research, or explicit workflow requests.

monotykamary/pi-fabric · 44 tokens

fabric-ambient

Creates a persistent Pi Fabric supervisor or advisor profile. Use for ambient supervision, ongoing peer review, an advisor, or a goal watcher without another extension.

monotykamary/pi-fabric · 34 tokens