add yt-dlp notes

This commit is contained in:
2025-10-14 12:36:56 -04:00
parent 1361c726d9
commit 8c39f749c7

View File

@@ -0,0 +1,26 @@
# YT DLP
## Downloading Videos
Download the best quality video:
```bash
yt-dlp -f "bv+ba/b" https://...
```
Download a playlist:
```bash
yt-dlp -f "bv+ba/b" --write-thumbnail 'https://www.youtube.com/watch?v=l-unefmAo9k&list=PLuYLhuXt4HrQqnfSceITmv6T_drx1hN84'
```
## Authentication
To download age restricted videos:
1. Log into youtube via chromium
2. Pass `--cookies-from-browser chromium` as part of yt-dlp
```bash
yt-dlp -f "bv+ba/b" --write-thumbnail --cookies-from-browser chromium 'https://youtu.be/2YkEDGD_sDs?si=YQSfjv8Xhk23lvc3'
```