rg3/youtube-dl — Issue #273: youtube-dl cookie problem
Author: rubiohiguey
Created: 2012-01-14 18:52:45+00:00
State: open

Hello

I am just a basic linux CL user.

I have been using youtube-dl for a long time, thank you guys for this great piece of script.

I have now tried to use youtube-dl with cookies.

I nee dto simulate a different country for youtube download. So far I have used other scripts to find complete URL and then I used wget with --header option to download it. It was cumbersome though. Then I found out youtube-dl allows using cookie file.

So I have this cookie file (cookie.txt) which has content: VISITOR_INFO1_LIVE=kVOjAYmlXSE
I run: youtube.dl --cookies cookie.txt http://www.youtube.com/videourl
but i get error "ERROR: unable to open cookie file"

I tried chmod 777 for cookie.txt, I tried putting a full path to the cookie.txt file, copying cookie.txt to /usr/bin
trying everything and I always get error unable to open cookie file.

What am I doing wrong?

Thank you,
George