lk/networking/scraping/youtube-dl.md
2022-11-06 14:28:09 +01:00

624 B

title tags
Download videos
Documentation
Scraping

Install yt-dlp.

yt-dlp --write-auto-sub

It will default to English, but you can specify another language with the flag --sub-lang:

youtube-dl --sub-lang sv --write-auto-sub

You can list all available subtitles with:

yt-dlp --list-subs

It's also possible to skip the video and only download the subtitle if you add the flag --skip-download:

yt-dlp --sub-lang sv --write-auto-sub --skip-download

Alternative

Try yt-dlp for some additional features and workarounds. It uses the same flags as yt-dlp.