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

429 Client Error: Too Many Requests #233

Closed woldioo closed 8 months ago

woldioo commented 8 months ago

What code / cli command are you executing?

I am running the following code to fetch a YouTube video transcript:

YouTubeTranscriptApi.get_transcript(video_id, languages=['en'])

Which Python version are you using?

Python 3.8.

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

0.4.1

Expected behavior

I expected to receive the English transcript of the provided YouTube video ID without any errors.

Actual behaviour

Instead of getting the transcript, I received a 429 Client Error: Too Many Requests response from the YouTube server, which indicates that my application has sent too many requests in a given amount of time and thus has been rate-limited. But I'm getting this error over the last two days

jdepoix commented 8 months ago

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

Closed as this is a duplicate.