yt-dlp download age restricted videos from youtube using cookies from browser

you used to be able to download age restricted videos ( like 80s horror movies )
from youtube using yt-dlp by running a command like this

Code:
yt-dlp 'url'

however youtube closed that loophole
so you need to used a workaround

sign into youtube and play and an age restricted video in your browser

replace firefox with the name of the browser you are signed into youtube with,
and url with the youtube url in the command below

Code:
yt-dlp --cookies-from-browser firefox 'url'

this even works with Firefox running in a jail
 
Back
Top