Python downloader for HTTP Live Streaming (HLS), which is m3u8 file
pip install m3u8-dl
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 url with -u when #EXTINF hls-720p0.ts has no base url 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.
- First release on PyPI.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size m3u8_dl-0.2.3-py2.py3-none-any.whl (8.7 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size m3u8_dl-0.2.3.tar.gz (11.3 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for m3u8_dl-0.2.3-py2.py3-none-any.whl