'Instabot: ERROR - Request returns 429 error

I have posted yesterday that I am getting:

ERROR - Request returns 429 error!

I have tried running it just as:

from instabot import Bot
import time

bot = Bot()
bot.login(username="username", password="password")
image = "1.png"
bot.upload_photo(image, caption="")

But it still gave me the same error as when I ran the below code yesterday. I can manually login and upload to Instagram; Why the bot can not do it?

from instabot import Bot
import time

bot = Bot()
image = 1
bot.login(username="username", password="password")

while image < 10001:

    photo = str(image)
    bot.upload_photo(f"{photo}.png", caption="")
    image += 1
    time.sleep(3600)


Solution 1:[1]

Error 429 means sending to many requests. 10000 images might do that. Try sending less requests to the server.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ChinDaMay