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

Error 429 #196

Closed lovetcodes closed 1 year ago

lovetcodes commented 1 year ago

The transcript API works great on my local Flask server, but consistently fails in my hosted environment (onrender).

Error: Could not retrieve a transcript for the video https:// www.youtube.com/watch?v=429 Client Error: Too Many Requests for ur: https://www.google.com/sorry/index? continue=https://www.youtube.com/ watch%3Fv%3D[VIDEO_ID]&q=EgQ2u8j_GLbL- KAGIjAukVmdqg8119WeKzDXMfrwHXiNez3e3URj- _IJQGuReRYRc9Gkln40VXAlfSe301kyAXI! This is most likely caused by:

Request to YouTube failed: [VIDEO_ID]

Any ideas for working around this issue?

Thank you!

jdepoix commented 1 year ago

Hi @lovetcodes, what is it exactly that you are executing? It seems that you are trying to retrieve the transcript for http://www.youtube.com/watch?v=429. However, 429 doesn't seem to be a correct video id. Maybe check whether the video actually is correct.

jdepoix commented 1 year ago

@lovetcodes did this solve your issue? Can this be closed?

jdepoix commented 1 year ago

Close due to inactivity