Saturday, January 21, 2017

How to export chat from a Twitch.tv vod?

Guide on how to export a chat replay transcript from a Twitch.tv vod.

Here is a quick guide on how to export the chat replay from a video clip on Twitch.tv. You will need to download python, a script and then run it in a command prompt.

Step 1.

Download python 2.7 which you can get from here: https://www.python.org/download/releases/2.7/

Step 2.

Get the Twitch chat replay downloader script from here: https://gist.github.com/PetterKraabol/0daed253f4c4ebce25c3fdac8f3cf0d3

Step 3.

Install python 2.7, extract the script from step 2 and make sure you put them it in a easy to find folder.

I made a folder on my D: Drive called it Temp and extracted the chatreplay.py file into that directory.

Step 4.

Script requires a special module to run called requests. To get this module for Windows Python install you can use the easy_install.exe script located in your python\scripts folder.

Open up a command prompt, go to the directory for python27, then scripts, then type easy_install.exe requests

That should download the required module.

Step 5.

Start up the command prompt and then go to the directory where you installed the chatreplay.py script.

Then type python chatreplay.py VOD#



Replace VOD# with a number to the video clip you want to get the chat replay transcript from on twitch.tv.

Then that finishes, inside the directory where you have the chatreplay.py script will have a text file with the VOD# as name. If you open that up all the chat from that vod will be in there.

And thats basically how you would do it! Please note this script and the API it uses is not really supported for this sort of a thing and may change at some point making this script not work anymore.


No comments:
Post a Comment