Simplified tool to automatically archive VODs, clips, highlights, including associated chat logs for specified Twitch channels
NOTE: ⛔ [DEPRECATED] This repo/fork has been deprecated - Migrated to standalone repo: TwitchVault (https://github.com/cr08/TwitchVault)
My personal goal has been to find or develop a tool that can not only automate archiving the latest VODs, clips, and highlights from selected Twitch channels, but also archiving the chat logs as they are available for each medium.
- Ensure Python 3.6 minimum is installed.
- Clone this repository:
git clone https://github.com/cr08/twitch_vod_creator
- Install main python depencies:
python3 -m pip install --user -r requirements.txt
- Download and place TwitchDownloaderCLI for your platform into /thirdparty
- Latest release recommended, minimum 1.50.6 required as it fixes a chat download issue
- Ensure TwitchDownloaderCLI is set as executable. This may be necessary on *nix platforms
chmod x thirdparty/TwitchDownloaderCLI
- Copy and fill out all config/*.yaml.example files as necessary.
- An application needs to be registered with Twitch from the Twitch Dev console - client ID and secret need to be entered into config/config.yaml
- Run scripts as desired:
python3 videos.py
python3 clips.py
- Optional - Linux targets: Add scripts to crontab using docs/crontab_script_launcher.sh
sudo crontab -e
-
*/25 * * * * /path/to/repo/docs/crontab_script_launcher.sh videos.py * */12 * * * /path/to/repo/docs/crontab_script_launcher.sh clips.py
- VTT render produces files with a single word displayed at a time (at least as played via VLC). This needs to be fixed. I may just switch this to SRT as Vosk can natively output this and hopefully it outputs correctly. More testing needed here...
This repo has been heavily modified from goldbattle's Twitch VOD Creator - All credit and attribution as well as a huge amount of thanks goes out to them for creating the core functionality of automatically retrieving the requisite content from Twitch.