Skip to content

Instantly share code, notes, and snippets.

View FloPinguin's full-sized avatar

FloPinguin FloPinguin

View GitHub Profile
@FloPinguin
FloPinguin / kill-specific-java-process.bat
Created January 27, 2020 17:01
Killing a specific java process on windows
start "MyProgram" "C:/Program Files/Java/jre1.8.0_201/bin/java.exe" -jar MyProgram.jar
taskkill /F /FI "WINDOWTITLE eq MyProgram" /T
@FloPinguin
FloPinguin / twitch-vod-id.py
Created January 27, 2020 16:57
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…
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'])