subzeroid / instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2024
https://hikerapi.com/p/bkXQlaVe
MIT License
4.37k stars 684 forks source link

[BUG] "We've detected automated behavior on your account" #1376

Open Yqno opened 1 year ago

Yqno commented 1 year ago

Describe the bug after 16 Likes i get the error "We've detected automated behavior on your account"

To Reproduce

else: client.media_like(topmedia.id) sleep(14) print(Fore.BLUE + f"Liked Top Post Number {i+1} of hashtag {hashtag}")

Traceback challenge_required Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 360, in _send_private_request response.raise_for_status() File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://i.instagram.com/api/v1/media/3120098763652652723_59109663105/comment/

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 520, in private_request self._send_private_request(endpoint, kwargs) File "/usr/local/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 391, in _send_private_request raise ChallengeRequired(last_json) instagrapi.exceptions.ChallengeRequired: challenge_required

Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 360, in _send_private_request response.raise_for_status() File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://i.instagram.com/api/v1/media/3120098763652652723_59109663105/comment/

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 520, in private_request self._send_private_request(endpoint, kwargs) File "/usr/local/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 391, in _send_private_request raise ChallengeRequired(last_json) instagrapi.exceptions.ChallengeRequired: challenge_required

Expected behavior the script should continue with liking, commenting and following

Screenshots IMG_4168

Desktop (please complete the following information):

sekoakb commented 1 year ago

+1, having same issue even running below 10 times approx.

cap

alexferra commented 1 year ago

same issue, even though Im using AI!!