Your transcript code works on your laptop. You deploy it to AWS, Vercel, Render, Railway or a VPS, and every video fails with one of these: ERROR: [youtube] dQw4w9WgXcQ: Sign in to confirm you're not a bot. Use --cookies-from-browser or --cookies for the authentication.
Source: [Dev.to](https://dev.to/jeffreyinman/fixing-sign-in-to-confirm-youre-not-a-bot-for-youtube-transcripts-on-a-server-3i1b)