Streamlink
Streamlink is a CLI utility which pipes video streams
...There is also an API available for developers who want access to the stream data. Streamlink is built upon a plugin system that allows support for new services to be easily added. Most of the big streaming services are supported. Streamlink is made up of two parts, a cli and a library API. See their respective sections for more information on how to use them. The default behavior of Streamlink is to playback streams in the VLC player. Please note that by using this application you're bypassing ads run by sites such as Twitch.tv. ...