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