Datalux / Osintgram

Osintgram is a OSINT tool on Instagram. It offers an interactive shell to perform analysis on Instagram account of any users by its nickname
GNU General Public License v3.0
9.72k stars 2.16k forks source link

BAD PASSWORD ERROR? #1158

Open Excaliburr00 opened 1 month ago

Excaliburr00 commented 1 month ago

AttributeError: 'BadPassword' object has no attribute 'msg'

How do I fix this shit I'm almost manage to fix all the another error that I'm getting but this I can't fix pls help

Excaliburr00 commented 1 month ago

Attempt to login... Traceback (most recent call last): File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 359, in _send_private_request response.raise_for_status() File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/requests/models.py", line 1024, 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 "/data/data/com.termux/files/home/Osintgram/src/Osintgram.py", line 942, in login client.login(u, p) File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/instagrapi/mixins/auth.py", line 441, in login logged = self.private_request("accounts/login/", data, login=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 541, in private_request raise e File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 526, in private_request self._send_private_request(endpoint, kwargs) File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/instagrapi/mixins/private.py", line 415, in _send_private_request raise BadPassword(last_json) instagrapi.exceptions.BadPassword: You can log in with your linked Facebook account. If you are sure that the password is correct, then change your IP address, because it is added to the blacklist of the Instagram Server

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/data/data/com.termux/files/home/Osintgram/main.py", line 96, in api = Osintgram(args.id, args.command) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/Osintgram/src/Osintgram.py", line 49, in init self.login(u, p) File "/data/data/com.termux/files/home/Osintgram/src/Osintgram.py", line 952, in login pc.printout('ClientError {0!s} (Code: {1:d}, Response: {2!s})'.format(e.msg, e.code, e.error_response), pc.RED) ^^^^^ AttributeError: 'BadPassword' object has no attribute 'msg'