3

i'm solliciting you today because i've a problem with selenium. my goal is to make a full automated bot that create an account with parsed details (mail, pass, birth date...) So far, i've managed to almost create the bot (i just need to access to gmail and get the confirmation code).

My problem is here, because i've tried a lot of things, i have a Failed to load resource: the server responded with a status of 429 () So, i guess, instagram is blocking me. how could i bypass this ?

timogo
  • 31
  • 1
  • 1
  • 3
  • I'm surprised you're getting this with Selenium, are you using `requests` module? You're going to need to research Instagram's request limits (not sure if that's public info) and build your bot accordingly. Most of the time you will be able to try again after a certain amount of time (Google Translate resets theirs at midnight I believe). But I would ultimately look for a different method because if you trip that when you run your bot too often it's gonna be a pain – Rohan Shah Nov 10 '20 at 18:00
  • 2
    FYI this also happens if **other** people in your IP range are doing mass requests – Romuald Brunet Oct 21 '22 at 08:33

4 Answers4

1

The answer is in the description of the HTTP error code. You are being blocked because you made too many requests in a short time.

Reduce the rate at which your bot makes requests and see if that helps. As far as I know there's no way to "bypass" this check by the server.

Check if the response header has a Retry-After value to tell you when you can try again.

Tony
  • 9,672
  • 3
  • 47
  • 75
0

Status code of 429 means that you've bombarded Instagram's server too many times ,and that is why Instagram has blocked your ip.

This is done mainly to prevent from DDOS attacks.

Best thing would be to try after some time ( there might be a Retry-After header in the response).

Also, increase the time interval between each request and set the specific count of number of requests made within a specified time (let's say 1 hr).

demouser123
  • 4,108
  • 9
  • 50
  • 82
0

Retry-After header is the best practice. However, there's no such response header in this scenario.

pruna
  • 1
  • 1
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Nov 07 '22 at 20:27
  • Please consider providing some source code to support explanation. It helps to understand the resolution. – Azhar Khan Nov 09 '22 at 09:37
0

It is because your IP is blocked. I had the same issue, then opened up NordVPN and tried to login again - worked fine. I could turn the VPN off and had access.

Finncent Price
  • 543
  • 1
  • 8
  • 20
Uno De Waal
  • 11
  • 1
  • 3
  • 1
    I don't think this is too related to the question and it looks a bit like NordVPN advertisement. How are you sure their IP is blocked? – Destroy666 May 07 '23 at 20:00