ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.29k stars 10.03k forks source link

Is it possible to using youtube-dl causing to block my instagram account? #29309

Open Max-Enrik opened 3 years ago

Max-Enrik commented 3 years ago

In last month I use youtube-dl for watching instagram videos and I think using youtube-dl to causing to block my instagram account and asks for conformation like below. This is 4th time in last month.

Confirm Your Info on the App to Get Back to Your Account We noticed unusual activity from your account. Confirm your identity from the Instagram app to get back to your account.

Any ideas?

shoxie007 commented 3 years ago

How many videos would you say you've downloaded before this happened? 100? 1,000? 5,000?

Not sure about Instagram, but I do know that Youtube will block your IP for about 3 days if you generate too many requests within any one day. I've narrowed down the number to say 3,000 videos. Download 3000 videos with youtube-dl in one single day and Youtube blocks your IP, giving you a 429: Too many connections error.

Assuming this is your problem, there are three ways around this:

  1. Use the option --force-ipv4 or -4 so that Youtube-DL uses IPV4 instead of IPV6. This will be seen by the website as another IP and perhaps the block won't be applied to you. Not sure it will work with all websites. But if your youtube-dl is generating too many requests, it's only a matter of time before your IPV4 is blocked too.
  2. Route your youtube-dl command through a VPN, and make sure you don't generate too many requests from any one VPN server you're using. Maybe process 2000 videos through one server, then the next batch through another server etc.
  3. Subscribe to a proxy service like instantproxies.com and then route your youtube-dl command through a proxy using the --proxy option in youtube-dl. Again, as with the VPN, do not exceed 2000 videos per proxy.
october262 commented 3 years ago

In last month I use youtube-dl for watching instagram videos and I think using youtube-dl to causing to block my instagram account and asks for conformation like below. This is 4th time in last month.

Confirm Your Info on the App to Get Back to Your Account We noticed unusual activity from your account. Confirm your identity from the Instagram app to get back to your account.

Any ideas?

did you happen to use a cookies.txt file ?? facebook does the same thing, possibly related - https://github.com/ytdl-org/youtube-dl/issues/18978

Max-Enrik commented 3 years ago

did you happen to use a cookies.txt file ??

I don't use cookies.txt file. I don't even know what it does.

Max-Enrik commented 3 years ago

How many videos would you say you've downloaded before this happened? 100? 1,000? 5,000?

06/16/2021 I played 13 videos by using mpv youtube-dl - and blocked my Instagram account again.

  1. Use the option --force-ipv4 or -4 so that Youtube-DL uses IPV4 instead of IPV6. This will be seen by the website as another IP and perhaps the block won't be applied to you. Not sure it will work with all websites. But if your youtube-dl is generating too many requests, it's only a matter of time before your IPV4 is blocked too.

Where should I put it?

shoxie007 commented 3 years ago

How many videos would you say you've downloaded before this happened? 100? 1,000? 5,000?

06/16/2021 I played 13 videos by using mpv youtube-dl - and blocked my Instagram account again.

  1. Use the option --force-ipv4 or -4 so that Youtube-DL uses IPV4 instead of IPV6. This will be seen by the website as another IP and perhaps the block won't be applied to you. Not sure it will work with all websites. But if your youtube-dl is generating too many requests, it's only a matter of time before your IPV4 is blocked too.

Where should I put it?

If you only downloaded 13 videos then Instagram shouldn't be reacting this way. I don't think the problem is generating too many requests. What do you mean "mpv" youtube-dl? What does mpv stand for? Or perhaps did you generate lots of other requests while downloading those 13 videos?

To force Youtube-DL to download through IPV4: youtube-dl --force-ipv4 [other options, then URL] or youtube-dl -4 [other options, then URL] It's described in the Readme documentation.

Max-Enrik commented 3 years ago

Instagram shouldn't be reacting this way.

I have few Instagram accounts since one of my Instagram account blocked again, I stopped using youtube-dl. So far my other account still not blocked.

What does mpv stand for?

It does mean MPV player.

It's described in the Readme documentation.

When my blocked Instagram account unblocked I will read documentation and try it.