'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
Solution 1:[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?
Solution 2:[2]
I don't see any problem with your code.
Error 429 and what it means: How can I bypass the 429-error from www.instagram.com?
Long story short, you have probably made too many REQUEST, and Instagram is blocking you ( it could be that you tried this code once, without the time.sleep(3600) and resulted 10000 request )
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 | Gurvinder Singh |
Solution 2 | kodanix |