change ``bash headers to ``sh

This commit is contained in:
2025-08-22 15:59:04 +02:00
parent 3e049e1687
commit 8eea348112
80 changed files with 773 additions and 555 deletions

View File

@@ -4,25 +4,25 @@ tags: [ "scraping" ]
---
Install `yt-dlp`.
```bash
```sh
yt-dlp --write-auto-sub *<URL>*
```
It will default to English, but you can specify another language with the flag --sub-lang:
```bash
```sh
youtube-dl --sub-lang sv --write-auto-sub *<URL>*
```
You can list all available subtitles with:
```bash
```sh
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:
```bash
```sh
yt-dlp --sub-lang sv --write-auto-sub --skip-download *<URL>*
```