https://github.com/fcanas/scrape
Download HLS Streams
https://github.com/fcanas/scrape
download-hls-streams hls http-live-streaming
Last synced: 11 months ago
JSON representation
Download HLS Streams
- Host: GitHub
- URL: https://github.com/fcanas/scrape
- Owner: fcanas
- License: mit
- Created: 2016-08-08T02:11:17.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2022-01-29T20:36:55.000Z (over 4 years ago)
- Last Synced: 2025-07-20T03:40:33.637Z (12 months ago)
- Topics: download-hls-streams, hls, http-live-streaming
- Language: Swift
- Size: 98.6 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# scrape
Download HLS streams
```
usage: scrape [-p] [-v] input_url output_url
input_url a remote URL to an m3u8 HLS playlist
output_url a local path where the HLS stream should be saved
-p download only playlist files
-v verbose output
```
## _Caveat Emptor_
Scrape only vaguely works. You'd be crazy to want to use it.
* It attempts to download several resources simultaneously. This tends to fail for a
variety of reasons. It works best for short HLS streams with few variants.
* It doesn't reload playlists. That means for live streams, it will only download a
snapshot of resources that are exposed at the point in time a playlist is fetched.
* It preserves directory structure, which is sometimes good, and sometimes catastrophic.
Cross-domain resources are especially problematic.
* It reports progress by telling you what is downloaded, nothing about what remains.
* It doesn't let you select a variant. It's all or nothing.
* It doesn't retry on failure.