This is the whole code, for easy reference:
import urllib.request import streamlink import ffmpeg stream_url = streamlink.streams("https://www.twitch.tv/