aboutsummaryrefslogtreecommitdiff
path: root/content/download-youtube-videos.md
diff options
context:
space:
mode:
authorMitja Felicijan <m@mitjafelicijan.com>2023-07-12 18:35:08 +0200
committerMitja Felicijan <m@mitjafelicijan.com>2023-07-12 18:35:08 +0200
commit23a56bd50b04211da3cab45f72c3390711b2416b (patch)
treeab9a4a0136b4cce06dba7d853e296f682f807dbb /content/download-youtube-videos.md
parentcecb4b48a39a3558979b9c4b50e45bf605a3684e (diff)
downloadmitjafelicijan.com-23a56bd50b04211da3cab45f72c3390711b2416b.tar.gz
Moved notes and posts into subfolders
Diffstat (limited to 'content/download-youtube-videos.md')
-rw-r--r--content/download-youtube-videos.md25
1 files changed, 0 insertions, 25 deletions
diff --git a/content/download-youtube-videos.md b/content/download-youtube-videos.md
deleted file mode 100644
index 33fff05..0000000
--- a/content/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: note
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