Streamlink
Python CLI and library that pipes video streams from services like Twitch and YouTube into a video player such as VLC, or writes them to disk.
Streamlink is a command-line utility and Python library that extracts video streams from streaming services and pipes them into a video player. It lets you watch streamed content in a local player instead of in a resource-heavy website. It was forked in 2016 from the abandoned Livestreamer project.
Basic usage is streamlink "STREAMURL" best, where the second argument selects the stream quality. By default, playback goes to VLC, but other players and output methods are available, including writing the stream to the filesystem and reading stream metadata. The CLI documentation covers the full set of options.
Support for individual services is implemented through a plugin system, so new services can be added as plugins. Popular services such as Twitch and YouTube are supported, and the plugins page lists everything included. Streamlink is aimed at users who want to play or record live streams outside the browser. Python developers can also embed it through the documented API guide and API reference. Installation instructions are provided for Windows, macOS, Linux and BSD, and PyPI or source.
Installation
# via Homebrew
brew install streamlink
Alternatives & related tools
posting
Terminal-based HTTP client with keyboard navigation, local YAML storage, and syntax highlighting
BBOT
Recursive internet scanner for recon, bug bounties and ASM: subdomain enumeration, web spidering, email gathering and web scanning via presets.
sshuttle
Transparent proxy that tunnels traffic to a remote network over ssh, acting as a VPN substitute without requiring admin access on the remote side.
httpstat
Visualizes curl statistics with timing breakdowns of DNS, TCP, TLS, server processing, and content transfer.
gallery-dl
Cross-platform command-line program that downloads image galleries and collections from many image hosting sites, with configurable file naming.
add a badge to your README
Maintain Streamlink? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/streamlink?utm_source=badge)<a href="https://www.trmn.sh/tools/streamlink?utm_source=badge"><img src="https://www.trmn.sh/badge/streamlink.svg" alt="Featured on trmn" height="20"></a>