Requests blocked after some time #1172
Unanswered
BlackPhoenix134
asked this question in
Q&A
Replies: 1 comment 7 replies
-
Your behavior is not human, you need to go to other pages (make other requests) as a user |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We noticed that when running our script it works fine for about 1 or 2 minutes. Liking, commenting and following, we sleep randomly between 10-15 seconds between actions and sometimes 30 seconds between cycles.
Then suddenly we get the following error.
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/media/2973663574970573838_5911213600/comment/ File "/mnt/networkssd/share/socialmedia/account/scripts/libs/funcs/instagram.py", line 69, in comment return self.client.media_comment(media.id, text) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/mnt/networkssd/share/socialmedia/account/scripts/libs/instagrapi/mixins/comment.py", line 149, in media_comment result = self.private_request( ^^^^^^^^^^^^^^^^^^^^^ File "/mnt/networkssd/share/socialmedia/account/scripts/libs/instagrapi/mixins/private.py", line 461, in private_request raise e File "/mnt/networkssd/share/socialmedia/account/scripts/libs/instagrapi/mixins/private.py", line 446, in private_request self._send_private_request(endpoint, **kwargs) File "/mnt/networkssd/share/socialmedia/account/scripts/libs/instagrapi/mixins/private.py", line 337, in _send_private_request raise LoginRequired(response=e.response, **last_json) libs.framework.exceptions.EngageException: (EngageException(...), LoginRequired('login_required'))
This seems to block the session we save on the disk. It is blocked for further request and we have to create a new one. Any idea how to fix that? Maybe we have to use longer sleeps?
Beta Was this translation helpful? Give feedback.
All reactions