Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

instabot ERROR, Why am I getting these errors and how to fix please?

I have written this to upload 10000 photos to Instagram, one each hour and whenever I run it I get these errors

INFO - Instabot version: 0.117.0 Started

INFO - Not yet logged in starting: PRE-LOGIN FLOW!

ERROR - Request returns 429 error!

WARNING - That means 'too many requests'. I'll go to sleep for 5 minutes.

this is my code am I doing anything wrong? Can someone please point it out and explain?

from instabot import Bot import time

bot = Bot()

image = 1

bot.login(username="username", password="password")

while image < 10000: photo = str(image) bot.upload_photo(f"{photo}.png") time.sleep(3600) image += 1

like image 500
Sticko5757 Avatar asked Nov 19 '25 19:11

Sticko5757


1 Answers

You just need to go to api.py This is a file in this InstaBot library In case if you're using vscode editor then just ctrl+click on the last link shown in error logs in terminal of vscode

Then comment out the complete chunk of code starting from 559 to 585(complete if block) Now you're good to go👍

like image 151
Gurvinder Singh Avatar answered Nov 21 '25 08:11

Gurvinder Singh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!