Coder Social home page Coder Social logo

m3u8_downloader's Introduction

Description

This tool will allow you to download the entire playlist of a given m3u8 URL and merge into a single .ts file.

m3u8 URLS must return a playlist as a response, you'll know this if the m3u8 url has a response that looks like the example below

Where to get a m3u8 URL?

Example of Twitch:

Go to a Twitch stream profile
Go to the Popular clips section
(In chrome) Open your developer tools (F12 on windows)
Go to the Network tab
filter by "m3u8"
Search through the filtered requests until you find one whose Preview tab shows a list of .ts files

Example of a valid response:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:18
#ID3-EQUIV-TDTG:2019-09-22T17:17:40
#EXT-X-PLAYLIST-TYPE:EVENT
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-TWITCH-ELAPSED-SECS:0.000
#EXT-X-TWITCH-TOTAL-SECS:18.0
#EXTINF:5.000,
485118384v0-517.ts
#EXT-X-DISCONTINUITY
#EXTINF:12.500,
518.ts
#EXT-X-DISCONTINUITY
#EXTINF:0.500,
485118384v2-519.ts
#EXT-X-ENDLIST

How to

requires python 3.8.x

WINDOWS: run by double clicking the .py file

Assuming you've already installed python 3.8.x, make sure to install ffmpeg first pip install ffmpeg (you can use powershell or cmd)

Download this repo
Right-click dl.py > Properties
General Tab > Change
Select Python 3.8.x
Click Apply
Click OK
Double click dl.py

run via console

#install virtualenv
pip install virtualenv

#create virtualenv
python -m virtualenv .

#activate the virtualenv
.\scripts\activate

#install reqs
pip install -r requirements.txt

#run dl
python .\dl.py

#paste your m3u8 file in the url text box and hit download!

m3u8_downloader's People

Contributors

thedynomike 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.