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

Allow for Age Restricted Videos to be Accessed

Open danielcliu opened this issue 6 years ago • 4 comments

If you try to access an age-restricted video, like GU7qYaYzd-0, without cookies you get back the The video is no longer available error. There should be functionality added to allow a user to load their Youtube cookies so they have the authorization required to access the age-restricted video.

I have almost finished a small PR to complete this, so if you're ok with it I will open up said PR.

danielcliu avatar Jan 14 '20 07:01 danielcliu

Hi @danielcliu, thanks for the report. Looking forward to the PR! 😊👍 But doesn't fixing this require some sort of login?

jdepoix avatar Jan 14 '20 09:01 jdepoix

It requires the user to be able to have access to the desired video through web-browser. The user will have to download their cookies from their browser so this module can use them in the session.

danielcliu avatar Jan 15 '20 03:01 danielcliu

Okay, that seems like an easy fix, as all requests are already done using a Session object.

jdepoix avatar Jan 15 '20 10:01 jdepoix

This has just been released as part of v0.3.0. Thank you for the contribution! 😊

jdepoix avatar Jan 31 '20 10:01 jdepoix