Skip to content

This script finds the right m3u8 address and then download the video.

Notifications You must be signed in to change notification settings

davisoares454/python-m3u8-downloader-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Streaming video downloader

This python script will receive a URL that contains a video player, then it will search in the HTML files for a pattern (https://player-vz), then it will transform that string into the right m3u8 URL address. After that, it will call another program, wich is able to download all .ts files and output it as mp4.

The program that this script uses is N_m3u8DL-RE. If not changed, it will always download the best quality found.

If you want to understand more of how m3u8 works, you can watch this youtube video.

How to use it

It will need to have a address and a headers file. That headers file can be obtained by:

  1. Going to the website and logging in, then;
  2. Using chrome devtools, select on of the network requests;
  3. right click then select Copy > Copy as cURL (bash);
  4. After that, you can paste that into a file named headers-file;
  5. Adjust it to match the headers-file.example.
python3 downloader.py "https://aluno.learningonline-placeholder.com.br/descomplicando-o-mercado-de-acoes/a-estrategia-mais-simples-que-existe" --headers-file headers-file

About

This script finds the right m3u8 address and then download the video.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages