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
Desktop (please complete the following information):
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
Desktop (please complete the following information):