forked from andonome/lk
change formatting
input examples are now given as ```bash input $ARG1 ``` While outputs use md's '> ' sign as a quote.
This commit is contained in:
@@ -4,19 +4,27 @@ tags: [ "Documentation", "Scraping" ]
|
||||
---
|
||||
Install `yt-dlp`.
|
||||
|
||||
> yt-dlp --write-auto-sub *<URL>*
|
||||
```bash
|
||||
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>*
|
||||
```bash
|
||||
youtube-dl --sub-lang sv --write-auto-sub *<URL>*
|
||||
```
|
||||
|
||||
You can list all available subtitles with:
|
||||
|
||||
> yt-dlp --list-subs *<URL>*
|
||||
```bash
|
||||
yt-dlp --list-subs *<URL>*
|
||||
```
|
||||
|
||||
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 *<URL>*
|
||||
```bash
|
||||
yt-dlp --sub-lang sv --write-auto-sub --skip-download *<URL>*
|
||||
```
|
||||
|
||||
## Alternative
|
||||
|
||||
|
Reference in New Issue
Block a user