m3u8 下载器
Project description
hs-m3u8
m3u8 视频下载工具。支持大部分的m3u8视频下载。后续增加UI界面。
功能
- aes解密
- 自动选择高分辨m3u8
- 合并MP4
- 可选择保留ts文件
- 内置Windows平台ffmpeg可执行文件(由于Linux及Mac下权限问题,需自行安装ffmpeg文件)
安装
pip包安装
pip install hs-m3u8
克隆代码安装
见下面开发文档
使用
url = "https://surrit.com/6d3bb2b2-d707-4b79-adf0-89542cb1383c/playlist.m3u8"
name = "SDAB-129"
dl = M3u8Downloader(
url=url,
save_path=f"downloads/{name}",
max_workers=64
)
await dl.run(del_hls=False, merge=True)
- del_hls 为True时会删除ts、m3u8、key等文件,否则会经过处理后保留,以便直接使用
- merge 为True时会自动合并为mp4
开发
先安装rye
rye网站:https://rye.astral.sh/
使用rye 安装包及虚拟环境
rye sync
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 Distribution
hs_m3u8-0.1.1.tar.gz
(60.0 MB
view details)
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 hs_m3u8-0.1.1.tar.gz.
File metadata
- Download URL: hs_m3u8-0.1.1.tar.gz
- Upload date:
- Size: 60.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
574117d0d6a9e1fc75395cbbec095dee687d8cf908e08353347f4aaf80eb69b0
|
|
| MD5 |
47609eb344e01dfc79986b4013174b50
|
|
| BLAKE2b-256 |
5e345106f04196253a66f498146f347e54f10faba629c3ca7045213a3a927c48
|
File details
Details for the file hs_m3u8-0.1.1-py3-none-any.whl.
File metadata
- Download URL: hs_m3u8-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96064234faf22c21d56d1edb880ca627662a964a56bf04087c2d7fd39ce6c6c9
|
|
| MD5 |
395434668bf3bbbc6f841cec19285b26
|
|
| BLAKE2b-256 |
21f64d0764d0d5148e0b8ee22ba7de33362ba908a021a09c25ba077b33bcd723
|