Solution to youtube-dl (yt-dlp) IP bans?

I'm getting IP-banned using yt-dlp. It seems that this is a known issue. Have any of you run into this, and if so, what has been your solution?

I currently use a VPN via a VPS. I am able to view youtube via the web client and use youtube-dl without VPN, but I am only unable to get through using the CLI on the VPN. I have also tried fiddling with some CLI args (like --extractor-args "youtube:player_client=web") but that is also unsuccessful.

My next step is to try signing up for mullvad to see if I can get around it that way, but would like to hear if this is affecting existing mullvad users.

Open to hearing other solutions as well. Thanks!

8 points · 3 comments · view on lemmy.world

3 Comments

sxan@midwest.social · 4 pts · 2y (1 reply)

Mullvad has literally hundreds of exit nodes in dozens of countries. I have a script on my router that switches my exit node to a random one every few hours (a couple of times a day). This means that sometimes, Reddit doesn't like me.

Now, I don't like Reddit, but people will keep posting links to stuff on there so I hit it occasionally. If Reddit is being pissy, I just manually switch my router's exit node to a different one; only rarely do I have to do this more than once.

I've never encountered IP banning from YouTube (and I do use yt-dlp), but if I did, I'm fairly confident hopping exit nodes, like I do for Reddit, would work just as well.

namingthingsiseasy@programming.dev · 1 pts · 2y

Thanks for letting me know. That sounds promising, so I'll give it a shot!

friend_of_satan@lemmy.world · 2 pts · 2y (1 reply)
[ removed ]
namingthingsiseasy@programming.dev · 2 pts · 2y

Thanks, I'm using yt-dlp too. I was a bit sloppy while writing the post and updated it to make it clear that I'm also using yt-dlp