jeckman / YouTube-Downloader

PHP script for downloading videos from youtube; also parsing youtube feed into RSS enclosures for podcatchers
GNU General Public License v2.0
895 stars 474 forks source link

Too many request Error:429 #405

Closed adamwoo2444 closed 5 years ago

adamwoo2444 commented 5 years ago

I am facing an issue after making my webapp live for 30-45 mints I get too many request issue error 429.How can I solve this issue?

adamwoo2444 commented 5 years ago

@sepehr @Cerdic @airesvsg @ewwink @jeckman @falahati @Adrixan any clue? Thank you.

jeckman commented 5 years ago

I've not seen this error. My guess is you are getting rate limited by the Google API. You could enable multiple IP addresses as defined in lines 86-155 in the config/default.php file which should help.

falahati commented 5 years ago

get too many requests literally means what it says. You are sending too many requests to the server. Either use multiple IP addresses and manage the number of requests per IP address or limit your usage.

Unfortunately, there is no know quota for the get_video_info endpoint. https://stackoverflow.com/questions/31904183/is-there-limit-to-access-youtubes-get-video-info-from-single-ip

ewwink commented 5 years ago

use proxy and random user agent for request to the yt and if it used for public use anti bot.

adamwoo2444 commented 5 years ago

@ewwink can you share any code or link so that I can proceed further. It will help me thanks.