Skip to main content

m3u8 下载器

Project description

hs-m3u8

m3u8 视频下载工具。支持大部分的m3u8视频下载。后续增加UI界面。

功能

  • aes解密
  • 自动选择高分辨m3u8
  • 合并MP4
  • 可选择保留ts文件
  • 内置Windows平台ffmpeg可执行文件(由于Linux及Mac下权限问题,需自行安装ffmpeg文件)

计划

  • 增加cli功能,通过终端执行命令去下载
  • 增加支持curl参数功能。直接在curl里面读取请求头及cookie
  • 编写详细文档
  • 选择一个合适的技术栈,增加UI界面

安装

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


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.8.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hs_m3u8-0.1.8-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file hs_m3u8-0.1.8.tar.gz.

File metadata

  • Download URL: hs_m3u8-0.1.8.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for hs_m3u8-0.1.8.tar.gz
Algorithm Hash digest
SHA256 c9f85c5a392b81d8baf06a7ccb941102e8675b24d20402228dc341461ceb9c47
MD5 93abccaed4cd9d5e38b4de43d6f182c3
BLAKE2b-256 b6702f3931f19964eb5fe5a2f140647a94988ca0e36669d0527f5d30d5c2e2d9

See more details on using hashes here.

File details

Details for the file hs_m3u8-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: hs_m3u8-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for hs_m3u8-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8c333d33310305ff2ed7db056f09cce452e11de9ef049a9edcfce2662b4ec060
MD5 02007310a89583c4d9b8b38f20277d76
BLAKE2b-256 6a24749de9849235f53c12bdd7673a91a6a5aba06544b70b9d5b2a505edaebee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page