clarifications

This commit is contained in:
2022-11-06 14:28:09 +01:00
parent e021020aa3
commit 670ddfb423
9 changed files with 79 additions and 98 deletions

View File

@@ -1,22 +1,24 @@
---
title: "youtube-dl"
title: "Download videos"
tags: [ "Documentation", "Scraping" ]
---
> youtube-dl --write-auto-sub <URL>
Install `yt-dlp`.
> yt-dlp --write-auto-sub *<URL>*
It will default to English, but you can specify another language with the flag --sub-lang:
> youtube-dl --sub-lang sv --write-auto-sub <URL>
> youtube-dl --sub-lang sv --write-auto-sub *<URL>*
You can list all available subtitles with:
> youtube-dl --list-subs <URL>
> yt-dlp --list-subs *<URL>*
Its also possible to skip the video and only download the subtitle if you add the flag --skip-download:
It's also possible to skip the video and only download the subtitle if you add the flag --skip-download:
> youtube-dl --sub-lang sv --write-auto-sub --skip-download <URL>
> yt-dlp --sub-lang sv --write-auto-sub --skip-download *<URL>*
## Alternative
Try `yt-dlp` for some additional features and workarounds.
It uses the same flags as youtube-dl.
It uses the same flags as yt-dlp.