Skip to main content

Python downloader for HTTP Live Streaming (HLS), which is m3u8 file

Project description

M3u8-dl
~~~~~~~

|alt text| |alt text| |alt text|

M3u8-dl is a simple command-line util which downloads m3u8 file.

Install
~~~~~~~

.. code:: bash

pip install m3u8-dl

Usage
~~~~~

Get the HLS Request infomation from web browser with
``Developer Tools``. Such As ``Request URL`` and ``Referer``

.. code:: bash

# HLS_URL -> Request URL
# OUTPUT -> such as example.ts
m3u8-dl HLS_URL OUTPUT

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

For more details, check ``--help``

TODO
~~~~

Maybe I will add a ``--restore`` option in the future to recover from
the last session where the user left off so that you don't have to
redownload when the task is interrupted.

.. |alt text| image:: https://img.shields.io/pypi/v/m3u8_dl.svg
.. |alt text| image:: https://img.shields.io/travis/kedpter/m3u8_dl.svg
.. |alt text| image:: https://readthedocs.org/projects/m3u8_dl/badge/?version=latest



=======
History
=======

0.1.0 (2019-03-13)
------------------

* First release on PyPI.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

m3u8_dl-0.1.2.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

m3u8_dl-0.1.2-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file m3u8_dl-0.1.2.tar.gz.

File metadata

  • Download URL: m3u8_dl-0.1.2.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for m3u8_dl-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f3dde9c92953f1a9f8174213fa80243102fcbe788adf2e9b86a026ab9a5c4b97
MD5 1b746154ed1ff29af85cf801f7bab0b1
BLAKE2b-256 5e58d673a38989ed8581df4ebbb8065a5fbe32d10424f73aafec2599b341be0e

See more details on using hashes here.

File details

Details for the file m3u8_dl-0.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: m3u8_dl-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for m3u8_dl-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d80ab847fefdfedb2d01e72f6bf133a94024a04596f5b770db39d89ea1563244
MD5 8f155900ae5836e80b3e3a9542d43384
BLAKE2b-256 d14d9496b7fbe3dee08b5de3148ccc8dbfb57e23252844927f5c28f667fede12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page