Created
January 27, 2020 16:57
-
-
Save FloPinguin/3d75f4c22834df793a9a8c12e0b341e0 to your computer and use it in GitHub Desktop.
This python script will output the past broadcasts vod ids of a specific user (Using the new Twitch API v5). You need to replace USERID with an actual user id. To obtain the user id of a streamer, an api call to a specific vod will help: https://api.twitch.tv/helix/videos?id=VODID. The response will include a user_id. CLIENTID also needs to be r…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import json | |
| r = requests.get("https://api.twitch.tv/helix/videos?user_id=USERID&type=archive", headers={"Client-ID":"CLIENTID"}) | |
| j = json.loads(r.text) | |
| for vod in j['data']: | |
| print(vod['id']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment