jdepoix / youtube-transcript-api

This is a python API which allows you to get the transcript/subtitles for a given YouTube video. It also works for automatically generated subtitles and it does not require an API key nor a headless browser, like other selenium based solutions do!
MIT License
2.55k stars 280 forks source link

Http error 429 #206

Closed agnirudrasikdar closed 1 year ago

agnirudrasikdar commented 1 year ago

DO NOT DELETE THIS! Please take the time to fill this out properly. I am not able to help you if I do not know what you are executing and what error messages you are getting. If you are having problems with a specific video make sure to include the video id.

Which Python version are you using?

Python 3.9

Which version of youtube-transcript-api are you using?

youtube-transcript-api 0.6.0

Expected behavior

I expected to retrieve the youtube caption

Actual behaviour

I received an http 429 error

# ... error message ...

raise HTTPError(http_error_msg, response=self) Apr 25 12:15:27 AM requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://www.google.com/sorry/index?continue=https://www.youtube.com/watch%3Fv%3DJ4-wJCmTumo&q=EgQjnXUcGMecm6IGIjD5pan21JCxWxuM-0KhcZeSwUVN3pmCvthgDAfMImJ5g4PVebBSP-rAmxRWYnNW6VoyAXI

Additional comment

What is the api limit and when does the http 429 gets reset or how can I reset this?

jdepoix commented 1 year ago

Hi @agnirudrasikdar, have a look at this discussion #176, to find out more about rate limits.

Closed as this is a duplicate.