Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Cookie option #1365
Cookie option #1365
Comments
|
For normal use (i.e. downloading videos), you don't need either of the |
|
I am also getting curious where EXACTLY can the |
|
Some video services (youtube in some cases, it depends) only allow downloads from the final URL if it can be associated with the extractor. Therefore, they set cookies during extraction/player setup, and throw out an error when somebody tries to download without those exact cookies. If that's the case, the external downloader needs to supply the same cookies to the server. For example, if you want to download using wget, you could execute
But as I wrote above, that's really an inferior way to embed a downloader, since it's error-prone (the cookie file will be overwritten if you run this command multiple times in parallel, for example) and relies on an external script. For instance, can you spot the two mistakes in the wget invocation above? It's way easier and more reliable to just include necessary features into youtube-dl itself. |
|
Thanks for these explanations. |
Hello, since i still did not understand on what this option consists and i cant find any good description, can anyone explain me what it does and how to use it since i heard about a necessary user agent option. Thanks.