Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot to pass cookies in python? #23410

Closed
MaxiFilippov opened this issue Dec 14, 2019 · 2 comments
Closed

Hot to pass cookies in python? #23410

MaxiFilippov opened this issue Dec 14, 2019 · 2 comments
Labels

Comments

@MaxiFilippov
Copy link

@MaxiFilippov MaxiFilippov commented Dec 14, 2019

  • I've verified that I'm running youtube-dl version 2019.11.28
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

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 terminal youtube-dl --cookies /home/max/Downloads/f1.txt https://www.youtube.com/watch?v=ZQpWRenGF_w And it works properly. What do I do wrong in python?

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Dec 14, 2019

@remitamine remitamine closed this Dec 14, 2019
@remitamine remitamine added the invalid label Dec 14, 2019
@remitamine
Copy link
Collaborator

@remitamine remitamine commented Dec 14, 2019

again the option key you're using is incorrect its: cookiefile

@ytdl-org ytdl-org locked and limited conversation to collaborators Dec 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.