-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
[Instagram] HTTPError 429 (Too Many Requests) #22382
Comments
I ran into this issue as well today in the newest version with youtube (2019.10.16) |
I wonder if this is related to my issue with the only difference being that I get the error from youtube downloads. EDIT see this: #21729 (comment) |
@devmane144 , @Zuccace , good day. I was experimenting last night, and I was able to (unofficially and hackish-ly) fix the problem by editing the code. Add the following code on
(make sure to follow the indentation, since this is Python) This is a dirty hack, and adds a 4-second delay before every download, be it metadata download, page download, or actual video download. I tried smaller delays, but 4 works the best. This prevents Instagram from limiting our access. This will also limit downloads from other websites such as YouTube, so this is only a temporary fix and should be removed when not needed. Rather, the developers should turn this into a command switch to enable or disable at will. Also, another reminder: be sure to add Good luck! Edit: I will try to make a pull request to add a command line switch to add delays before downloading and fix the issue officially and publicly. |
Thanks for getting back! I will give it a go! |
I knew some delays between requests would solve this. |
I'm too busy to actually edit the code and submit a PR (plus, I'm not familiar with YTDL codebase) so I think I can't fix this soon. In the moment, I'll reopen the issue, and hopefully someone with more knowledge than me can help fix this officially. |
Checklist
Verbose log
Description
Trying to download an Instagram user's videos, youtube-dl tries to get the JSON pages one at a time, causing Instagram to give an HTTP too many requests error eventually. I have seen that youtube-dl fixed this issue by downloading all page data in one request, but that doesn't seem to be the case here.
I am terribly sorry if this is a duplicate issue. If there is something I can do to fix the issue, I would gladly help.
The text was updated successfully, but these errors were encountered: