Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Joseph Vargas JosephTico

🎯
Focusing
View GitHub Profile
View twitch_live_url.py
import requests
import json
import re
import argparse
import random
import m3u8
USHER_API = 'https://usher.twitch.tv/api/channel/hls/{channel}.m3u8?player=twitchweb' +\
'&token={token}&sig={sig}&$allow_audio_only=true&allow_source=true' + \
'&type=any&p={random}'