0

Iam new to python and making a simple django app to download videos from youtube.It runs withou any error on local host but on production it throws an error :

HTTP Error 429: Too Many Requests

I know its sending too many request in short time but ho do i limit the request?

theDude
  • 41
  • 1
  • 8
  • 1
    `time.sleep` in between a certain amount of calls? – Buckeye14Guy Feb 27 '20 at 17:18
  • 1
    Does this answer your question? [How to avoid HTTP error 429 (Too Many Requests) python](https://stackoverflow.com/questions/22786068/how-to-avoid-http-error-429-too-many-requests-python) – Eliakin Costa Feb 27 '20 at 18:40
  • actually this question is different from [How to avoid HTTP error 429 python](https://stackoverflow.com/questions/22786068/how-to-avoid-http-error-429-too-many-requests-python) this problem is because PyTube doesn't use a proper header for request to download media. – Ali Akhtari Apr 09 '20 at 21:55

0 Answers0