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

choose language on youtubetranscript #185

Closed KaterTom closed 1 year ago

KaterTom commented 1 year ago

Hi there, I use https://youtubetranscript.com/ to get the transcription, which works great with English. Does anybody know, if there is something I could add to this url, if the default language of a video is English, but I want the ITALIAN transcript, which is also listed in the video as an option? Similar question: What to add to the url when the default language is ITALIAN to begin with?

Should this not be possible → are there other websites that can handle this? Thank you! Tom

jdepoix commented 1 year ago

Hi @KaterTom, I have no affiliation with that website, so I can't give you any support on how to use it. It might be using this module under the hood. If so, there probably isn't anything you can add to the URL to change the language, as they will probably parse out only the video id. However, you can simply use this module directly to retrieve transcripts in whatever language you like. Have a look at the documentation to find out how to use it. This is a standard use case, which is fairly well documented.

I will close this issue now, as there is nothing to do here.