Skip to main content

download m3u8 video by m3u8 url or by local m3u8 file.

Project description

m3u8-XZ

This is a simple package,it can download video by m3u8.

pip install m3u8-xz

if you have installed old version

pip install m3u8-xz --upgrade

####version 0.1.2 修复一个小BUG

####version 0.1.0 删除对aiohttp的依赖,以便可以在android上安装

####version 0.0.14 增加了中断后继续下载的功能

####version 0.0.13 增加了使用线程池请求的方法和启动方式

####version 0.0.12 捕获了一些可能发生的错误

####version 0.0.11 增加可选参数decryptKey,decryptKeyFunc 针对一些不是根据uri的结果直接解密的情况

####version 0.0.10 修复了上个版本的重大问题

####version 0.0.9 加入 run_thread 启动方法,会在子线程执行

####version 0.0.8 修复一些小问题

####version 0.0.7 加入可选参数:

headers:可自定义头部 path:可自定义保存文件的绝对路径, logger:可选择是否打印输出, print_callback:打印回调,可通过**kwargs接收指定参数

####version 0.0.3 修复一些小问题

####version 0.0.2 support aes-128 decode,support read local m3u8 file

from m3u8_XZ import m3u8
# use m3u8 url 通过url
obj = m3u8(url='https://example.com/index.m3u8', folder='test')
# use local file 通过本地文件
# m3u8(m3u8_file='fileName.m3u8', folder='test')
# 异步启动方式 old
# obj.run()
# 2024年5月23日 新增启动方式
obj.run(thread_num=20)

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

m3u8_xz-0.1.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

m3u8_xz-0.1.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file m3u8_xz-0.1.2.tar.gz.

File metadata

  • Download URL: m3u8_xz-0.1.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.1

File hashes

Hashes for m3u8_xz-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cbe5d2f9d8ea47e44f665de5ac93144299f0154cdeea83fd0a0edf895d7b522f
MD5 f2389b353a7dffffcf59c90d066c6c5f
BLAKE2b-256 1a868f5978c3af4622f6e92c08fda1d773c42ff1a678a08b3bacc7e2d32609ba

See more details on using hashes here.

File details

Details for the file m3u8_xz-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: m3u8_xz-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.1

File hashes

Hashes for m3u8_xz-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 104217137dff603662f497e1472e967e2748192d5179c6de757daa8c7df9ada7
MD5 738b926efdad07e6d1886a13b3d6810e
BLAKE2b-256 f25a3f9d12fbc7ce5f70aedd7c4bcaa8c54350b745ce9ed1a15e78a540f48c5f

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