← 返回
内容创作

Douyin DL

Download Douyin (抖音) short videos from URLs. Supports direct video links, search page links with modal_id, share links (v.douyin.com), and note links. Uses h...
Download Douyin (抖音) short videos from URLs. Supports direct video links, search page links with modal_id, share links (v.douyin.com), and note links. Uses h...
lskun
内容创作 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 946
下载
💾 110
安装
1
版本
#latest

概述

Douyin Video Downloader

Downloads Douyin videos by opening the page in a headless browser, extracting the source URL, and downloading via curl. This bypasses yt-dlp's cookie issues with Douyin's anti-scraping.

Prerequisites

  • agent-browser (npm i -g agent-browser)
  • curl

Usage

python3 scripts/douyin_download.py <URL> [--output-dir DIR] [--filename NAME]

Supported URL Formats

  • https://www.douyin.com/video/ — direct video page
  • https://www.douyin.com/search/...?modal_id= — search results with video modal
  • https://v.douyin.com/ — share short links
  • https://www.douyin.com/note/ — note/image posts with video

Examples

# Basic download to ~/Downloads
python3 scripts/douyin_download.py 'https://www.douyin.com/video/7577715519366576522'

# Custom output directory and filename
python3 scripts/douyin_download.py 'https://www.douyin.com/video/7577715519366576522' \
  -o ~/Videos -f my_video

# From search page URL
python3 scripts/douyin_download.py 'https://www.douyin.com/search/关键词?modal_id=7577715519366576522'

How It Works

  1. Normalize URL → extract video ID, construct direct video page URL
  2. Open page in agent-browser (headless Chromium)
  3. Extract element's currentSrc (CDN direct link)
  4. Close browser
  5. Download MP4 via curl with proper Referer header

Notes

  • No login required — fresh browser session is sufficient
  • Video title auto-detected from page title for filename
  • Large videos may take 30-60s to download depending on network
  • CDN links are temporary (~2h validity); download promptly after extraction

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-19 07:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,434
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,438
developer-tools

Structured Dev

lskun
结构化开发流水线:Research → Plan → Annotate → Implement。 基于 Boris Tane (Cloudflare) 的 Claude Code 工作流,确保 AI 在架构审查通过前不写一行代码。 触发词:
★ 0 📥 564