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.
Hot to pass cookies in python? #23410
Comments
|
|
|
again the option key you're using is incorrect its: cookiefile |
I'm trying to pass cookies like this
ydl_opts = {'outtmpl': "%(id)s", "cookies": "/root/avd/f.txt"}to avoid 429 error, but it still throws 429 because, as I suspect, it can't read cookie file, the path is right, I use the same path in terminalyoutube-dl --cookies /home/max/Downloads/f1.txt https://www.youtube.com/watch?v=ZQpWRenGF_wAnd it works properly. What do I do wrong in python?