Douyin input adapter for DySub
Project description
dysub-input-douyin
DySub 抖音链接输入插件 — 解析抖音分享链接,提取视频直链用于字幕生成。
工作原理
不同于 yt-dlp 等重型工具,dysub-input-douyin 采用轻量级解析策略:
- 用手机 UA 访问
iesdouyin.com分享页面 - 从 HTML 中提取嵌入的
window._ROUTER_DATAJSON - 解析出
video.play_addr.url_list作为视频直链 - 附带必要的 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 |
| 视频质量 | 带水印版本(不影响音频提取) |
| 失败原因 | 分享页改版、视频已删除/私密、网络超时 |
更多文档
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dysub_input_douyin-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dysub_input_douyin-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edd510c22edc4812cb28274d6e95c92224174185f4bd43343574c9aeef37dc02
|
|
| MD5 |
49c3ab0888ae84dcab00729698478ad4
|
|
| BLAKE2b-256 |
185991843545acb615179a11ca5cddf6c773c076d7ff9eaef75fa81f20009e87
|