Downloaded the required packages:
sudo apt-get install vlc livestreamer python-pip
Select the stream that you wish to watch, select the link starting with twitch.tv/
Then write the command in a terminal:
livestreamer twitch.tv/link_of_your_streamer
Then you will see the quality that maintains the stream, choose something that you wish to watch, but then again:
livestreamer twitch.tv/link_of_your_streamer video quality