Skip to content

Instantly share code, notes, and snippets.

@yutsuku
yutsuku / twitch-vod-chat
Last active January 15, 2022 01:48 — forked from tung/twitch-vod-chat.py
Download chat from a Twitch VOD and print it to a terminal.
#!/usr/bin/env python3
#
# A script to download chat from a Twitch VOD in SubRip (*.srt) format
# Chat will be downloaded all the way until it ends.
#
# Usage: TWITCH_CLIENT_ID=0123456789abcdef0123456789abcde twitch-vod-chat.py [video_id] [start]
#
# This script could break at any time, because Twitch's chat API is
# undocumented and likes to change at any time; in fact, this script was
@yutsuku
yutsuku / yreplay2srt.py
Last active October 25, 2021 01:55 — forked from kfur/yreplay2srt.py
Youtube livechat.json replay to srt subtitles
import pysrt
import json
import sys
import functools
from urllib import request
import re
class LiveChat():
def __init__(self, livechatJson, modOnly, max_comments_view_len=160, max_comments_per_view=4):
@yutsuku
yutsuku / straight.google.user.js
Last active August 8, 2018 07:15 — forked from ql-owo-lp/straight.google.user.js
Straight Google
// ==UserScript==
// @name Straight Google
// @id straight_google_pokerface
// @version 1.17.14
// @author Pokerface - Kevin
// @namespace in.co.tossing.toolkit.google
// @description Remove URL redirection from google products
// @license GPL v3 or later version
// @downloadURL https://userscripts.org/scripts/source/121261.user.js
// @updateURL https://userscripts.org/scripts/source/121261.meta.js