Code Monkey home page Code Monkey logo

m3u8_downloader's Introduction

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技术学习、交流之用,切勿用于其他任何可能造成违法场景,否则后果自负!

m3u8_downloader's People

Contributors

hestyle avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.