You are not logged in.

#1 2021-07-24 14:38:05

sexynsmartjenny
Member
From: Boston, MA
Registered: 2016-07-17
Posts: 157

downloading private youtube videos via youtube-dl --cookies

Hi everyone,

This is my first time sharing. I want to share this because it took me a long time to figure out how to do it and, also, writing it down helps myself to remember how to do it smile

on the chrome web-browser, press F12, go to application, storage, and cookies, copy and paste all the cookies into a text file, say "cookiesF.txt"

Then, convert the cookies.txt into netscape format by using

node convert-cookies.js cookiesF.txt > cookies.txt

you have to download "convert-cookies.js" of course. Just google around and you will find where to download it.

And then, just enter "youtubde-dl --cookies=cookies.txt $link to video$"

and that's it! Simple! big_smile

Offline

#2 2021-07-24 23:12:11

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,357

Re: downloading private youtube videos via youtube-dl --cookies

So this works with all private videos not just the ones that require a user to login to their YT/Google account to view?


Real Men Use Linux

Offline

#3 2021-07-28 07:06:37

ohnonot
...again
Registered: 2015-09-29
Posts: 5,568

Re: downloading private youtube videos via youtube-dl --cookies

Yes I'd also like to understand: when do you actually need this? How long are the cookies good for?

Last edited by ohnonot (2021-07-28 07:06:55)


Give to COVAX! Here or here. (explanation)
My Repos: notabug | framagit

Offline

Board footer

Powered by FluxBB