douyin-video-download

douyin-video-download is a skill for Claude Code from desirecore/market. It costs 172 tokens per session (2,117 once invoked), scanned A, original, MIT.

A downloader for saving Douyin, the Chinese short-video platform, videos from share links or video IDs without the visible watermark. It uses direct web requests and verifies the downloaded media with ffprobe, a media inspection tool.

In plain words
What is it for?
Use it to download and de-watermark a Douyin video from a short link, share link, or video ID, or to retry a failed download.
Why use it?
It provides a route for downloading videos when the desktop web API is blocked, without requiring a login, browser credentials, or browser rendering. It handles the share-link resolution and download steps together.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to download and de-watermark a Douyin video from a short link, share link, or video ID, or to retry a failed download.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desirecore/market/douyin-video-download
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 desirecore/market --skill douyin-video-download
Clone the repo
git clone --depth 1 https://github.com/desirecore/market

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-video-download

README.md
[![agentmods](https://agentmods.dev/badge/skills/desirecore/market/douyin-video-download/github.svg)](https://agentmods.dev/skills/desirecore/market/douyin-video-download)
Your own site
<a href="https://agentmods.dev/skills/desirecore/market/douyin-video-download"><img src="https://agentmods.dev/badge/skills/desirecore/market/douyin-video-download/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-video-download

Your own site · 80×15
<a href="https://agentmods.dev/skills/desirecore/market/douyin-video-download"><img src="https://agentmods.dev/badge/skills/desirecore/market/douyin-video-download.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 172 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,117 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00172 $0.02117
Opus 5.5 $0.00069 $0.00847
Sonnet 5.5 $0.00034 $0.00423
Haiku 4.5 $0.00017 $0.00212

Measured 10d ago against content hash 4dbf91e9a356, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

douyin-video-download scanned grade A with 1 finding 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 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/download_douyin.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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. **Resolve the short link**: `curl -sIL -A "$H5UA" "https://v.douyin.com/<short_id>/"`
skills/douyin-video-download/SKILL.md · 166 lines

How it starts

The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.

douyin-video-download Skill

L0: One-line Summary

Download Douyin videos without watermark via the mobile H5-header route and verify with ffprobe — no login required.

L1: Overview and Use Cases

Capability

Run the full chain on a Douyin short link / share link / video ID: resolve the short link, make a two-pass request to the iesdouyin share page to obtain the ttwid cookie and extract videoInfoRes.play_addr, swap playwm for play to drop the watermark, download, and verify with ffprobe. The bundled scripts/download_douyin.py does all of this in one command (stdlib only).

Use Cases

The user provides a v.douyin.com short link, an iesdouyin share link, or a bare video ID and asks to download, save, or de-watermark it; or a previous download attempt failed and needs a reliable path.

Core Value

No user-browser credentials, no login bridge, no browser rendering — pure HTTP. Works even for videos whose desktop web API is blocked by msToken/Argus signing (verified 2026-11).

L2: Detailed Specification

Quick start (recommended)

python3 scripts/download_douyin.py "https://v.douyin.com/<short_id>/" -o out_dir/
python3 scripts/download_douyin.py 7708667389918858496 -o out_dir/

The script resolves the short link, obtains ttwid, extracts the play address, swaps playwm→play, downloads, and runs ffprobe verification. Output: <video_id>.mp4 plus metadata. Python standard library only.

Manual steps (when the script is unavailable)

  1. Resolve the short link: curl -sIL -A "$H5UA" "https://v.douyin.com/<short_id>/" and take https://www.iesdouyin.com/share/video/<video_id>/?...&share_sign=... from the 302 Location header.
  2. Prepare H5UA: an iPhone Safari UA, e.g. Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1; requests must also carry browser-style Accept/Accept-Language headers.
  3. Two-pass fetch of videoInfoRes: request https://www.iesdouyin.com/share/video/<video_id>/. The first response only sets a ttwid device-session cookie on the .iesdouyin.com domain (not a login credential); re-request with that cookie and the response embeds videoInfoRes at videoInfoRes.item_list[0].video.play_addr.url_list[0], e.g. https://aweme.snssdk.com/aweme/v1/playwm/?video_id=<vid>&ratio=720p&line=0. Extraction snippet:

Read the full file on GitHub · 166 lines

Files

What ships with it

3 files 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. 10d ago First seen · 166 lines · 172 tokens per session scan A 4dbf91e9a356

Subscribe to this mod's changes

douyin-video-download is a skill published in the GitHub repository desirecore/market (2 stars, last pushed today), licensed MIT. It adds 172 tokens to every session and 2,117 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-20.

Related

douyin-video-download compared with skills from other repositories

douyin-video-download next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
douyin-video-downloaddesirecore/marketSkill2todayMITA172Claude Code
media-downloadKnuckles-Team/media-downloaderSkill54d agoMITA77Claude Code, Codex
c-videodaxaur/openpawSkill1836mo agoMITA38Claude Code, Codex
short-video-analysis-toolshuhaolin63-hash/short_video_analysis_tool-skillsSkill134mo agoMITA20Claude Code, Codex
douyin-videoyzfly/douyin-mcp-serverSkill1.3k5mo agoApache-2.0A96Claude Code, Codex
youtube-downloaderaviz85/claude-skills-librarySkill524mo agononeA32Claude Code
frame-light-leak-cinemanexu-io/open-designSkill110ktodayApache-2.0A31Claude Code, Codex