{"id":13907503,"url":"https://github.com/kedpter/M3u8Downloader","last_synced_at":"2025-07-18T05:31:59.735Z","repository":{"id":53558838,"uuid":"175353148","full_name":"kedpter/M3u8Downloader","owner":"kedpter","description":"Python downloader for HTTP Live Streaming (HLS)","archived":false,"fork":false,"pushed_at":"2022-12-26T20:39:02.000Z","size":26,"stargazers_count":36,"open_issues_count":6,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-19T23:37:43.269Z","etag":null,"topics":["download","header","hls","m3u8","python","referer"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kedpter.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-13T05:36:06.000Z","updated_at":"2024-08-12T19:46:41.000Z","dependencies_parsed_at":"2023-01-31T01:31:04.314Z","dependency_job_id":null,"html_url":"https://github.com/kedpter/M3u8Downloader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kedpter%2FM3u8Downloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kedpter%2FM3u8Downloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kedpter%2FM3u8Downloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kedpter%2FM3u8Downloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kedpter","download_url":"https://codeload.github.com/kedpter/M3u8Downloader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226353715,"owners_count":17611751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["download","header","hls","m3u8","python","referer"],"created_at":"2024-08-06T23:01:58.163Z","updated_at":"2024-11-25T15:32:02.219Z","avatar_url":"https://github.com/kedpter.png","language":"Python","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"### M3u8-dl\n\n![alt text](https://img.shields.io/pypi/v/m3u8_dl.svg)\n![alt text](https://img.shields.io/travis/kedpter/m3u8_dl.svg)\n![alt text](https://readthedocs.org/projects/m3u8_dl/badge/?version=latest)\n\nM3u8-dl is a simple command-line util which downloads m3u8 file.\n\n\n### Install\n\n```bash\npip install m3u8-dl\n```\n\n### Usage\n\nGet the HLS Request infomation from web browser with `Developer Tools`.\nSuch As `Request URL` and `Referer`.\n\n```bash\n# HLS_URL -\u003e Request URL\n# OUTPUT -\u003e such as example.ts\nm3u8-dl HLS_URL OUTPUT\n# code below may not work since the website server may reject an out-of-date request\nm3u8-dl https://proxy-038.dc3.dailymotion.com/sec\\(4pkX4jyJ09RyW9jaEyekktbBu55uix9cMXQu-o5e13EelVKd1csb9zYSD66hQl7PlA_V5ntIHivm_tuQqkANmQj8DbX33OMJ5Db-9n67_SQ\\)/video/795/864/249468597_mp4_h264_aac.m3u8 example.ts -u https://proxy-038.dc3.dailymotion.com/sec\\(4pkX4jyJ09RyW9jaEyekktbBu55uix9cMXQu-o5e13EelVKd1csb9zYSD66hQl7PlA_V5ntIHivm_tuQqkANmQj8DbX33OMJ5Db-9n67_SQ\\)/video/795/864/ -r https://www.dailymotion.com/video/x44iz79\n\n# restore last session if the task was interrupted\nm3u8-dl --restore\n```\n\nIf you are failed to download the stream, try it again with the options below:\n- Specify the Referer with `-r` when you're blocked by the website (403 forbidden).\n- Specify the base url with `-u` when `#EXTINF hls-720p0.ts` has no base url in `output.m3u8`.\n\nYou can even make it run faster by using `-t`, which means how many threads you want to start.\n\n`--restore` will restore the last session.\n\nFor more details, check `--help`.\n\n### Notes\n- Version 0.2.0\n    1. Add support to local m3u8 files. For example\n    ```\n    m3u8-dl file:///Users/username/Downloads/master.m3u8 example.ts\n    ```\n\n    2. Create a fake m3u8 file depends on ts range. For example\n    ```\n    m3u8-dl -f master.m3u8 -r 1,100 --ts seg-@NUMBER-f1-v1-a1.ts?validfrom=1581996390\u0026validto=1582003590\u0026ip=89.187.161.206\u0026hdl=-1\u0026hash=rz91LEl6l%2FSZH83nXkv5BXzUhOQ%3D\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkedpter%2FM3u8Downloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkedpter%2FM3u8Downloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkedpter%2FM3u8Downloader/lists"}