Python downloader for HTTP Live Streaming (HLS), which is m3u8 file
Project description
M3u8-dl
M3u8-dl is a simple command-line util which downloads m3u8 file.
Install
pip install m3u8-dl
Usage
Get the HLS Request infomation from web browser with Developer Tools. Such As Request URL and Referer.
# HLS_URL -> Request URL
# OUTPUT -> such as example.ts
m3u8-dl HLS_URL OUTPUT
# restore last session if the task was interrupted
m3u8-dl --restore
If you are failed to download the stream, try it again with the options below:
Specify the Referer with -r when you’re blocked by the website (403 forbidden).
Specify the base uri with -u when #EXTINF hls-720p0.ts has no base uri in output.m3u8.
You can even make it run faster by using -t, which means how many threads you want to start.
--restore will restore the last session.
For more details, check --help.
History
0.1.0 (2019-03-13)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for m3u8_dl-0.1.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3402679645ad54fda8232f3fe3c59f067f23f92000574bbe91f9fc1ff996848 |
|
MD5 | 25d1b4404fb1f700b90811a3da75b0a3 |
|
BLAKE2b-256 | a5b87c5197ba65defea4d44c9f46d3ce5a5f846479ac283f24c69cbd6cc94db4 |