Software >
https://github.com/yt-dlp/yt-dlp
A downloader for YouTube and many other places.
- A fork and improvement of youtube-dl
-
Has it's own YouTube comment scraper, obsoleting youtube-comment-scraper
-
- 2022-07-14 - 2022.06.29 on Windows Subsystem for Linux 2
- 2022-06-30 - 2022.06.29 on Windows 10
- 2022-06-30 - Switched from youtube-dl
-
2022-06-30 - Switched from youtube-comment-scraper
Usage ∞
2022-06-30 - 2022.06.29 on Windows 10 this seemed to work:
yt-dlp.exe --audio-format best --write-info-json --write-annotations --write-all-thumbnails --embed-thumbnail --all-subs --embed-subs --add-metadata --output '%(uploader)s/%(upload_date)s - %(title)s/%(title)s.%(ext)s' --format 299-dash+140-dash --merge-output-format mp4 --write-comments "jNQXAC9IVRw"
This didn't seem to work, and hasn't been troubleshooted.
--output '%(uploader)s/%(upload_date)s - %(title)s/%(title)s.%(ext)s'
TODO ∞
- https://github.com/TheFrenchGhosty/TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection
-
Investigate if I need to fiddle with cookies again: https://www.reddit.com/r/youtubedl/comments/vuatbt/fyi_google_removed_the_get_cookiestxt_extension/
Usage ∞
TODO - Solving HTTP Error 429
∞
I can reproduce this when downloading a long list of subtitles [ 1 ] :
ERROR: Unable to download video subtitles for 'or': HTTP Error 429: Too Many Requests
-
Not working:
--sleep-subtitles 4
TODO
Getting cookies ∞
For Chrome and variations like Brave and Edge[doesn't exist].
- TODO - F12 instructions
-
https://github.com/dandv/convert-chrome-cookies-to-netscape-format
- TODO - usage
TODO - Using cookies ∞
TODO
Getting cookies might be easier.
--cookies-from-browser brave:Profile\ name
--cookies-from-browser brave
Get the directory of your profile:
%LOCALAPPDATA%
brave://version/
e.g.
/mnt/c/Users/USERNAME/AppData/Local/BraveSoftware/Brave-Browser/User Data/PROFILE\ DIRECTORY
where
USERNAME
is whatever you log in as-
PROFILE\ DIRECTORY
might simply beDefault
FileNotFoundError: could not find brave cookies database in "/path/to/wherever"
doesn't fucking work..
programmers can check out their cookies.py
TODO - Downloading age restricted videos ∞
Redact content in the .json
file ∞
--parse-metadata "video::(?P<url>)"
--alias --minimal-info-json '--parse-metadata "video::(?P<formats>)" --parse-metadata "video::(?P<url>)" --parse-metadata "video::(?P<http_headers>)" --parse-metadata "video::(?P<automatic_captions>)" --parse-metadata "video::(?P<subtitles>)" --parse-metadata "video::(?P<thumbnails>)"'
Alternatives ∞
- youtube-dl
-
https://github.com/blackjack4494/yt-dlc
- As of 2021-09-19 last updated 2020-11-11
Last updated 2023-01-25 at 12:00:09
Footnotes
-
or
is just a language code, like how.en
is for English. [ ↩ ]