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

Adding better exception for when blocked by bot protection

Open andre-c-andersen opened this issue 1 year ago • 0 comments

Adding this because it was hard to debug why I didn't get any transcripts.

A bot restricted HTML text looks like this:

"playabilityStatus":{"status":"LOGIN_REQUIRED","reason":"Sign in to confirm you’re not a bot"

A healthy HTML text looks like this:

"playabilityStatus":{"status":"OK"

I was restricted when deployed using a python container on DigitalOcean's App Platform.

andre-c-andersen avatar Sep 23 '24 20:09 andre-c-andersen