Script for downloading subtitles from all streams (and optionally regular videos) of a youtube channel and transforming them to make them more searchable (stripping out things like timestamps and sound effects). The downloaded files can then be easily searched using a text editor that can search all files in a directory like vscode, sublime, atom, etc.
Dependencies (python packages): google-api-core google-api-python-client yt-dlp typer
Also requires creating a google cloud account to create a youtube api key, but the free query quota is enough to use this script. Set an environment variable 'YT_API_KEY
' with the youtube api key.
Example usage:
python3 subtitles_download.py --help
python3 subtitles_download.py NinomaeInanis
Subtitle files are written to a directory ending with "_subs" and readable/searchable versions are written to a directory ending with "_transcripts".