Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed the incompatibility with instagram API #1673

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amir-hosseinpour
Copy link

Due to lack of updates, the current version isn't working with new Instagram API, and I fixed the problem.

@adnane1626
Copy link

adnane1626 commented Feb 17, 2025

after it catched the fwings number i got error
File "/root/Osintgram-fixed/venv/lib/python3.12/site-packages/instagram_private_api/client.py", line 523, in _call_api
response = self.opener.open(req, timeout=self.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/urllib/request.py", line 521, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/urllib/request.py", line 630, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/urllib/request.py", line 559, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/urllib/request.py", line 492, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "/usr/lib/python3.12/urllib/request.py", line 639, 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 "/root/Osintgram-fixed/main.py", line 186, in
_cmd()
File "/root/Osintgram-fixed/src/Osintgram.py", line 1448, in get_fwingsnumber
user = self.api.user_info(str(follow['id']))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/Osintgram-fixed/venv/lib/python3.12/site-packages/instagram_private_api/endpoints/users.py", line 17, in user_info
res = self._call_api('users/{user_id!s}/info/'.format(**{'user_id': user_id}))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/Osintgram-fixed/venv/lib/python3.12/site-packages/instagram_private_api/client.py", line 527, in _call_api
ErrorHandler.process(e, error_response)
File "/root/Osintgram-fixed/venv/lib/python3.12/site-packages/instagram_private_api/errors.py", line 123, in process
raise error_info['error'](
instagram_private_api.errors.ClientChallengeRequiredError: challenge_required

@Luffryte667
Copy link

i have this error when i write python main.py..... if you can help me

Attempt to login...
ClientError Bad Request: block_eu_user_login_in_old_app (Code: 400, Response: {"message":"You'll need to update Instagram to the latest version before you can use the app.","status":"fail","error_type":"block_eu_user_login_in_old_app"})You'll need to update Instagram to the latest version before you can use the app.: Bad Request: block_eu_user_login_in_old_app

@Luffryte667
Copy link

i have an other error rn nopw i download your file but i have
(venv) C:\Users........\Osintgram-fixed-master>python main.py username

Attempt to login...
ClientError login_required (Code: 403, Response: {"message": "login_required", "error_title": "You've Been Logged Out", "error_body": "Please log back in.", "logout_reason": 8, "status": "fail"})login_required
You've Been Logged Out

@adnane1626
Copy link

u should re login by re writing your credentials in the credentials.txt because you got logged out when meta found out the your account is being used in an automated process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants