aboutsummaryrefslogtreecommitdiff
path: root/content/notes/download-youtube-videos.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/notes/download-youtube-videos.md')
-rw-r--r--content/notes/download-youtube-videos.md25
1 files changed, 0 insertions, 25 deletions
diff --git a/content/notes/download-youtube-videos.md b/content/notes/download-youtube-videos.md
deleted file mode 100644
index 84e0505..0000000
--- a/content/notes/download-youtube-videos.md
+++ /dev/null
@@ -1,25 +0,0 @@
1---
2title: Download list of YouTube files
3url: download-youtube-videos.html
4date: 2023-05-13T12:00:00+02:00
5type: notes
6draft: false
7tags: [youtube]
8---
9
10If you need to download a list of YouTube videos and don't want to download the
11actual YouTube list (which `yt-dlp` supports), you can use the following method.
12
13```js
14// Used to get list of raw URL's from YouTube's video tab'.
15// Copy them into videos.txt.
16document.querySelectorAll('#contents a.ytd-thumbnail.style-scope.ytd-thumbnail').forEach(el => console.log(el.href))
17```
18
19Download and install https://github.com/yt-dlp/yt-dlp.
20
21```sh
22# This will download all videos in videos.txt.
23yt-dlp --batch-file videos.txt -N `nproc` -f webm
24```
25