streamlink.github.io
StreamLink is a command-line utility that extracts video streams from various services and pipes them into a video player such as VLC or mpv. It uses a plugin system to support services including Twitch and YouTube, and a Python API is available for developers. The project was forked from Livestreamer, which is no longer maintained.