VID = "https://www.youtube.com/watch?v=oVl1tT6eeLA"
!yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]" --write-subs --sub-langs fi --embed-subs --merge-output-format mp4 -o "%(id)s.%(ext)s" {VID}
/opt/homebrew/bin/bash: line 1: yt-dlp: command not found
!yt-dlp --no-warnings --no-check-certificate -f "bestvideo[height<=1080]+bestaudio/best[height<=1080]" -o "%(id)s.%(ext)s" {VID}
!pip install webvtt-py
Collecting webvtt-py
  Downloading webvtt_py-0.5.1-py3-none-any.whl (19 kB)
Installing collected packages: webvtt-py
Successfully installed webvtt-py-0.5.1
import webvtt
content = webvtt.read("oVl1tT6eeLA.fi.vtt")
for caption in content:
    print(caption.identifier)  # cue identifier if any
    print(caption.start)       # cue start time
    print(caption.end)         # cue end time
    print(caption.text)        # cue payload
    print(caption.voice)       # cue voice span if any
    print()