Skip to content

hestyle/m3u8_downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

m3u8_downloader

m3u8(HLS流)下载,实现了AES解密、合并、多线程、批量下载

1、开车姿势

1.1、导入源码中依赖的库(Python3)

 beautifulsoup4、m3u8、pycryptodome、requests、threadpool

1.2、m3u8_input.txt文件格式

  本下载器支持批量下载,m3u8连接需要放在一个txt文本文件(utf-8编码)中,格式如下:

视频名称1|https://www.aaaa.com/bbbb/cccc/index.m3u8
视频名称2|https://www.xxxx.com/yyyy/zzzz/index.m3u8
视频名称3|https://www.uuuu.com/vvvv/wwww/index.m3u8
...

1.3、根据实际情况修改下载配置

###############################配置信息################################
# m3u8链接批量输入文件(必须是utf-8编码)
m3u8InputFilePath = "D:/input/m3u8_input.txt"
# 设置视频保存路径
saveRootDirPath = "D:/output"
# 下载出错的m3u8保存文件
errorM3u8InfoDirPath = "D:/output/error.txt"
# m3u8文件、key文件下载尝试次数,ts流默认无限次尝试下载,直到成功
m3u8TryCountConf = 10
# 线程数(同时下载的分片数)
processCountConf = 50
######################################################################

2、车速展示

image image image

3、开车规范

3.1、注意身体!注意身体!注意身体!

3.2、以上源码仅作为Python技术学习、交流之用,切勿用于其他任何可能造成违法场景,否则后果自负!

About

m3u8(HLS流)下载,实现了AES解密、合并、多线程、批量下载

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages