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 |
| 视频质量 | 带水印版本(不影响音频提取) |
| 失败原因 | 分享页改版、视频已删除/私密、网络超时 |
更多文档
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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dysub_input_douyin-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for dysub_input_douyin-0.1.1-py3-none-any.whl |
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
|
Security for dysub-input-douyin 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.