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
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👍
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With