Anushka Narsima
Anushka Narsima

Reputation: 11

How to access Youtube APIs from server

I'm building a yt summarizer app. So for that I'm using youtube-transcript-api & pytube, to get the transcript, or audio if the first is disabled. Worked fine on my Windows laptop. But on my Apache server running on Ubuntu, linux VM (DigitalOcean droplet), it isn't working at all. It says subtitles are disabled when it actually isn't, HTTP Error 400: Bad Request, "This request has been detected as a bot, please try again or log in to view".

What can I do to make it work?

No api-keys or creds are given in code at the moment, it directly worked locally.

Upvotes: 1

Views: 157

Answers (0)

Related Questions