Obtenga el chatlog a un twitch vod desde su línea de comando con twitch-chatlog .

Este pequeño comando puede descargar todo el registro de chat a un twitch vod. Toma la ID del VOD (1111111 o similar) como solo argumento. Para aprender sobre el uso del comando, use twitch-chatlog -h .
La salida se puede colorear opcionalmente con -c o --color o configurando una variable de entorno TWITCH_CHATLOG_COLOR .
Para utilizar su propia ID de cliente de la aplicación Twitch, puede proporcionarla como una opción de línea de comando -C o --client-id o establecer una variable de entorno TWITCH_CHATLOG_CLIENT_ID . No se garantiza que el valor predeterminado para el ID del cliente funcione después del 08 de agosto de 2016, en cuyo caso tendrá que suministrar el suyo.
Para controlar la parte del registro de chat para obtener, --start , --length y --end se puede usar. Vea la sección de uso a continuación. Por defecto, el comando solo obtendrá los primeros diez minutos de registro de chat para minimizar la cantidad de solicitudes.
npm install -g twitch-chatlog Fetch the chat log to a Twitch VOD.
Usage: twitch-chatlog <vod_id>
vod_id is the ID from the VOD URL, optionally prefixed with v (deprecated).
Options:
-c, --color Colorize output [boolean] [default: false]
-C, --client-id Twitch application client ID [string] [default: (Client-ID)]
-l, --length Amount of time from the log to fetch in seconds. Gets
shortened to the VOD length if bigger. 0 loads everything but
is not recommended. The output will run until the next end of
a log fragment. [number] [default: (10 min)]
-s, --start Start time. Can either be a time relative to the VOD start or
actual time. [string] [default: "00:00:00"]
-e, --end End time. Alternative to specifying a length. A time like for
start. [string]
-r, --raw Print the raw JSON output instead of a formatted chat log.
[boolean] [default: false]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Examples:
twitch-chatlog 79240813 Load the first ten minutes of chat
for the VOD
https://twitch.tv/ec0ke/v/79040813
twitch-chatlog -c --end 00:15:00 79240813 Load the first 15 minutes of chat
for the VOD and colorize the output.
twitch-chatlog 79240813 Load the chat log until the given
--end=2016-07-20T20:37:44+0000 date.
Este programa utiliza una API de Twitch no oficial que puede dejar de funcionar en cualquier momento. Potencialmente, también envía muchas solicitudes en rápida sucesión, lo que podría llevar a que Twitch tome medidas contra él y, por lo tanto, se reduce el programa y/o su experiencia de contracción.