Skip to main content

dysub-input-douyin

DySub 抖音链接输入插件 — 解析抖音分享链接,提取视频直链用于字幕生成。

工作原理

不同于 yt-dlp 等重型工具,dysub-input-douyin 采用轻量级解析策略:

  1. 用手机 UA 访问 iesdouyin.com 分享页面
  2. 从 HTML 中提取嵌入的 window._ROUTER_DATA JSON
  3. 解析出 video.play_addr.url_list 作为视频直链
  4. 附带必要的 HTTP headers 传给 FFmpeg 提取音频

无需浏览器自动化、无需 cookies、无外部二进制依赖。

安装

pip install dysub-input-douyin

作为 dysub 统一包的一部分安装:

pip install dysub

使用

安装后自动注册,无需额外配置:

dysub process "https://v.douyin.com/xxxxx" --lang zh --format srt

技术细节

项目 说明
依赖 仅 httpx(由 dysub-core 提供)
请求方式 单次 HTTP GET,纯 Python
视频质量 带水印版本(不影响音频提取)
失败原因 分享页改版、视频已删除/私密、网络超时

更多文档

Metadata

Release files for dysub-input-douyin 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for dysub-input-douyin 0.1.1
File Interpreter ABI Platform
dysub_input_douyin-0.1.1-py3-none-any.whl Python 3 none any Details

Release files / dysub_input_douyin-0.1.1-py3-none-any.whl

Download URL dysub_input_douyin-0.1.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
edd510c22edc4812cb28274d6e95c92224174185f4bd43343574c9aeef37dc02
BLAKE2b-256 checksum
How to use checksums
185991843545acb615179a11ca5cddf6c773c076d7ff9eaef75fa81f20009e87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page