Traceback
Traceback (most recent call last):
File "/home/kali/.local/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 360, in _send_private_request
response.raise_for_status()
File "/usr/lib/python3/dist-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/accounts/login/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kali/temp_instatest.py", line 7, in
cl.login(user_id, password)
File "/home/kali/.local/lib/python3.11/site-packages/instagrapi/mixins/auth.py", line 441, in login
logged = self.private_request("accounts/login/", data, login=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 542, in private_request
raise e
File "/home/kali/.local/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 527, in private_request
self._send_private_request(endpoint, kwargs)
File "/home/kali/.local/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 447, in _send_private_request
raise ProxyAddressIsBlocked(last_json)
instagrapi.exceptions.ProxyAddressIsBlocked: Instagram has blocked your IP address, use a quality proxy provider (not free, not shared)
Expected behavior
it must dump the insta login session in session.json file
Screenshots
Desktop (please complete the following information):
OS: Kali linux 2023.3
Python version 3.11.6
instagrapi version the current one
moveipy version if used
imagemagick version if used
Additional context
i have also tried the same thing on windows & on cloud server as well but keep getting the same error
Try Instagrapi SaaS with a free trial https://hikerapi.com/p/5GBWznd3
Describe the bug when i try to login to instgram by instagrapi by the following code
the error i m getting
Traceback Traceback (most recent call last): File "/home/kali/.local/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 360, in _send_private_request response.raise_for_status() File "/usr/lib/python3/dist-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/accounts/login/
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/kali/temp_instatest.py", line 7, in
cl.login(user_id, password)
File "/home/kali/.local/lib/python3.11/site-packages/instagrapi/mixins/auth.py", line 441, in login
logged = self.private_request("accounts/login/", data, login=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 542, in private_request
raise e
File "/home/kali/.local/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 527, in private_request
self._send_private_request(endpoint, kwargs)
File "/home/kali/.local/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 447, in _send_private_request
raise ProxyAddressIsBlocked(last_json)
instagrapi.exceptions.ProxyAddressIsBlocked: Instagram has blocked your IP address, use a quality proxy provider (not free, not shared)
Expected behavior it must dump the insta login session in session.json file
Screenshots
Desktop (please complete the following information):
Additional context i have also tried the same thing on windows & on cloud server as well but keep getting the same error