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.76k stars 2.16k forks source link

With "ronaldo" account to scan -> 400 bad request from instagram #412

Open pizzo90 opened 2 years ago

pizzo90 commented 2 years ago

Hi, With big account to scan followers some instagram limit was reached, here my py stack trace:


Attempt to login...
ClientCookieExpiredError/ClientLoginRequiredError: Cookie expired at 1628592384

Logged as qwerty533224. Target: ronaldo [5749522] [NOT FOLLOWING]

________         .__        __
\_____  \   _____|__| _____/  |_  ________________    _____
 /   |   \ /  ___/  |/    \   __\/ ___\_  __ \__  \  /     \
/    |    \\___ \|  |   |  \  | / /_/  >  | \// __ \|  Y Y  \
\_______  /____  >__|___|  /__| \___  /|__|  (____  /__|_|  /
        \/     \/        \/    /_____/            \/      \/

Version 1.1 - Developed by Giuseppe Criscione

Type 'list' to show all allowed commands
Type 'FILE=y' to save results to files like '<target username>_<command>.txt (default is disabled)'
Type 'FILE=n' to disable saving to files'
Type 'JSON=y' to export results to a JSON files like '<target username>_<command>.json (default is disabled)'
Type 'JSON=n' to disable exporting to files'
Run a command: followers
Searching for target followers...
Catched 73867 followersTraceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/instagram_private_api/client.py", line 523, in _call_api
    response = self.opener.open(req, timeout=self.timeout)
  File "/usr/local/lib/python3.9/urllib/request.py", line 523, in open
    response = meth(req, response)
  File "/usr/local/lib/python3.9/urllib/request.py", line 632, in http_response
    response = self.parent.error(
  File "/usr/local/lib/python3.9/urllib/request.py", line 561, in error
    return self._call_chain(*args)
  File "/usr/local/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.9/urllib/request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/osintgram/main.py", line 186, in <module>
    _cmd()
  File "/home/osintgram/src/Osintgram.py", line 332, in get_followers
    results = self.api.user_followers(str(self.target_id), rank_token=rank_token, max_id=next_max_id)
  File "/usr/local/lib/python3.9/site-packages/instagram_private_api/endpoints/friendships.py", line 65, in user_followers
    res = self._call_api(endpoint, query=query_params)
  File "/usr/local/lib/python3.9/site-packages/instagram_private_api/client.py", line 527, in _call_api
    ErrorHandler.process(e, error_response)
  File "/usr/local/lib/python3.9/site-packages/instagram_private_api/errors.py", line 123, in process
    raise error_info['error'](
instagram_private_api.errors.ClientChallengeRequiredError: challenge_required

The error "challenge required" is the method that instagram blocks suspiciuos users or bot. How to fix?

Thank you, Andrea

Datalux commented 2 years ago

Try to use the v2 of Osintgram (current WIP).

abdueGa commented 2 years ago

ClientError bad_password (Code: 400, Response: {"message": "The password you entered is incorrect. Please try again.", "invalid_credentials": true, "error_title": "Incorrect password", "buttons": [{"title": "OK", "action": "dismiss"}], "status": "fail", "error_type": "bad_password"})The password you entered is incorrect. Please try again.: bad_password

I made a number of ways to no avail. I want a final solution. Can you help me??