Youtube python api is working on my localhost but not in my cloud server (Vercel). I am trying to download youtube captions. I have also tried the google youtube APIs in javascript with the same result. In both cases, the cloud server says: 'Could not retrieve a transcript for the video ... This is most likely caused by: Subtitles are disabled for this video.' I am wondering how the youtube server knows whether the caption request is coming from localhost versus a cloud server. Is there a way to trick the youtube server to think the request is coming from localhost? Or is there another way to fix this issue?
↧