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.87k stars 326 forks source link

How to Handle Unavailable Transcript? #127

Closed kanchansapkota27 closed 3 years ago

kanchansapkota27 commented 3 years ago

How would I go about handling if a transcript is unavailable. I am not able to work around it with simple try except.