Menu

yt-dlp works on my laptop but 403s in GitHub Actions
📰

yt-dlp works on my laptop but 403s in GitHub Actions

DEV Community: cicd·Yusuf Yildiz·16 days ago
#GkPwgoXx
#devtocicd#devto#dev#runner#youtube
Long article (471 words) — no AI summary yet.
Reading 0:00
15s threshold

I had a workflow that pulls metadata off a handful of YouTube URLs on a schedule. It ran fine for weeks, then started failing with Sign in to confirm you're not a bot and HTTP Error 403 . The command hadn't changed, and it still worked on my laptop. It only failed in the runner.

It took me a while to accept that the command was fine and the problem was where it ran. GitHub-hosted runners share a pool of datacenter IPs (Azure), and YouTube treats those IPs as suspicious. So the same yt-dlp line that works at home gets challenged in CI, because home is a residential IP and the runner isn't.

The first thing worth doing is confirming that, so you don't spend an afternoon rewriting a command that was never broken.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.