ping / instagram_private_api

A Python library to access Instagram's private API.
MIT License
2.94k stars 608 forks source link

Error: Unauthorized: Please wait a few minutes before you try again. #419

Open diegotrasobares opened 1 year ago

diegotrasobares commented 1 year ago

Please follow the guide below


Before submitting an issue, make sure you have:

Which client are you using?


Describe your Question/Issue:

Hello everyone! Im having troubles for some days now trying to get username_info. First it starts without problems, but when I arrive to a few users it just gets blocked. ERROR: instagram_private_api.errors.ClientError: Unauthorized: Please wait a few minutes before you try again. I already have set up delays between requests, I also have implemented session and cookies login to avoid re-login and also tried using proxies from Bright Data to change between request. Nothing is working I always get this error and have to wait for a long time before I make another request. When this happens, my Instagram account looks fine and it is not blocked or something. How are you guys solving this situation? Any tips? Thanks to all in advance!!

Please make sure the description is worded well enough to be understood with as much context and examples as possible.


Paste the output of python -V here:

Code:

# Example code that will produce the error reported
from instagram_web_api import Client

api = private_login(USERNAME, PASSWORD, "test_credentials.json")
raw_data = api.username_info(user)

Error/Debug Log:

instagram_private_api.errors.ClientError: Unauthorized: Please wait a few minutes before you try again.