Skip to content

Instantly share code, notes, and snippets.

View FlintTD's full-sized avatar

FlintTD FlintTD

View GitHub Profile
@FlintTD
FlintTD / twitch-recorder.py
Last active September 26, 2023 23:51 — forked from junian/twitch-recorder.py
Record Twitch Streams Automatically in Python
# This code has been modified by FlintTD to function after the deprecation of the Twitch v5 API in 2022.
# The Streamlink implementation has also been updated, due to changes in the Twitch REST API in 2020.
# This code is based on tutorial by slicktechies modified as needed to use oauth token from Twitch.
# You can read more details at: https://www.junian.net/2017/01/how-to-record-twitch-streams.html
# The original code is from https://slicktechies.com/how-to-watchrecord-twitch-streams-using-livestreamer/, which is now lost.
import requests
import os
import time
import json