Forums

youtube_transcript_api issue

Hello everyone. I've faced recently issues with youtube_transcript_api. For several months it worked very well, but now I am getting that for every video captions couldn't be recognised. Locally this api works well, but not on deployment (I have paid account). Has anyone faced same issue? If so, how did you resolve it? Or maybe you use different way to collect captions from videos?

Hi, it happened to me also exactly, working well for about one year till yesterday. Trying to fix it but it did not work changing the API nor remaking the python code at all. Strangly locally works well. Some clues? Did this problem start yesterday also?

I am receiving error Subtitles are disabled for this video. Though the video has them. I also encountered Video does not exist error. It often means that video is restricted somehow (by region, for ex.). Or it really does not exist (author deleted the video).

Speaking about my problem, I found very useful for me this resource: https://rapidapi.com/DataFanatic/api/youtube-media-downloader

It collects subtitles locally and on server.

I was just exchanging emails with someone (perhaps one of the posters in this thread) about what sounds like the same problem. We haven't made any networking changes, so this sounds like it might be some kind of issue at the remote end. Does anyone know what servers the youtube_transcript_api module talks to? We've confirmed that direct requests to www.youtube.com seem to work OK.

I just came across this github issue -- it looks like YouTube might have started blocking youtube_transcript_api across a number of different cloud hosting platforms, unfortunately :-(

Sad to hear :( But Thanks!

The API in question connects directly to the video's URL, where it retrieves the transcription from the source code. For example, it gathers a fragment like this directly from the source:

"captions":{"playerCaptionsTracklistRenderer":{"captionTracks":[{"baseUrl":"https://www.youtube.com/api/timedtext?v=kyXkHCdyAWY\u0026ei=87izZu3mF8WU4dUPzuGaiAk\u0026caps=asr\u0026lang=es","name":{"simpleText":"Español (generados automáticamente)"},"vssId":"a.es","languageCode":"es","kind":"asr","isTranslatable" ,"trackName":""}],"audioTracks":[{"captionTrackIndices":[0]}],"translationLanguages":[{"languageCode":"a.............

I do not see in this form the contact member option. is it possible to contact atikinkoon for matching and exchaning details about our APIs? or pls send him my contact. Thanks

I'm afraid we can't share contact details, but they might be notified of your response if they are subscribed.

Ok. Some more ppl had this issue?

By Básicos-autoit

In this forum thread it's just you, @Basicos, and also @atikinkoon. But someone else (which looking at the email thread, is probably a third person) has also had this issue. And if you check out GitHub issue you'll see quite a lot of other people who have been impacted on other platforms, so you could perhaps discussion options with them there.

Has anyone experienced issues with the youtube_transcript_api not recognizing captions for videos after working fine for several months? It works locally, but not on deployment, even with a paid account. How did you resolve this, or do you use a different method to collect captions from videos?

What is the error you are getting?