rechat-dl icon indicating copy to clipboard operation
rechat-dl copied to clipboard

Twitch API for the initial video information request changed

Open jmbreuer opened this issue 3 years ago • 2 comments

https://github.com/makamys/rechat-dl/blob/942f4b14a667ed7784cee400cceb7d10060368b1/rechat-dl.py#L26

To work as of today, the v5 video request needs some extra massaging:

auth = "OAuth ..." # token easily grabbed from browser devtools, I'm not sure how volatile or personalized this is
cid = "..." # also easily grabbed, needs to match auth above
vod_info = requests.get("https://api.twitch.tv/kraken/videos/v" + sys.argv[1], headers={"Accept": "application/vnd.twitchtv.v
5+json", "Client-ID": cid, "Authorization": auth}).json()

After this small update, the rest of the script worked perfectly to get me a chat transcript I was looking for a timestamp in 😎

jmbreuer avatar Oct 12 '21 19:10 jmbreuer

I didn't even realize this thing was still (mostly) working, I've completely forgotten about it at this point. I released it into the public domain now, so feel free to fork it. But you might want to use https://github.com/lay295/TwitchDownloader instead as it's still being actively maintained. I'll archive this repo soon.

makamys avatar Oct 13 '21 02:10 makamys

I'm just using the script with just a CID and no OAuth token by not getting the vod-info at the start since retrieving messages works with the script as-is...

SebiderSushi avatar Oct 20 '21 21:10 SebiderSushi