youtube-transcript-api icon indicating copy to clipboard operation
youtube-transcript-api copied to clipboard

I can't get transcripts with age restrictions.

Open RomanTerentiev opened this issue 6 years ago • 2 comments

Hello. I Can't get transcription with age restrictions. For example videoID = thsHOAF7LQI

RomanTerentiev avatar May 08 '20 19:05 RomanTerentiev

Hello RomanTerentiev,

I am unable to replicate your error. I was able to get the transcript for thsHOAF7LQI in both python 2.7 and 3.6.9 on the latest version of youtube-transcript-api

You are using cookies right? For age restricted videos you must have a Youtube account that can access the video in browser, then download your cookies into a text file. See the Cookies section in the ReadMe for more information.

If you are using cookies correctly in your get_transcript call and it is erring, then I will need more information on what python version and youtube-transcript-api version you are using.

danielcliu avatar May 08 '20 19:05 danielcliu

Oh.... Thank you. I wrote a module for my project so long ago that I forgot about cookies ...

Have a nice day :)

RomanTerentiev avatar May 08 '20 19:05 RomanTerentiev