Skip to content

Instantly share code, notes, and snippets.

@chrisdeely
chrisdeely / hlsFetcher.py
Last active November 13, 2018 17:12 — forked from anonymouss/hlsFetcher.py
download hls segments from Azure Media Services
#!/usr/bin/env python3
# Http Live Streaming -- fetcher/downloader
# A simple script to download ts segments/m3u8 files from given url, including variant streams from master m3u8
# require: python3
import sys
import os
import urllib.request
TEST_URL = 'https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8'