Osintgram icon indicating copy to clipboard operation
Osintgram copied to clipboard

fixed the incompatibility with instagram API

Open amir-hosseinpour opened this issue 10 months ago • 2 comments

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

amir-hosseinpour avatar Feb 05 '25 01:02 amir-hosseinpour

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

adnane1626 avatar Feb 17 '25 18:02 adnane1626

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 avatar Mar 06 '25 17:03 Luffryte667

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

Luffryte667 avatar Mar 06 '25 17:03 Luffryte667

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

adnane1626 avatar Mar 06 '25 21:03 adnane1626