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.45k stars 2.06k forks source link

i need help : 1) instagram_private_api.errors.ClientError: Not Found 2) urllib.error.HTTPError: HTTP Error 404: Not Found #721

Open theblackdeveil opened 1 year ago

theblackdeveil commented 1 year ago

Attempt to login... Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 525, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 563, in error return self._call_chain(args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(args) ^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/kali/tools/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/tools/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/kali/tools/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/tools/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/errors.py", line 135, in process raise ClientError(error_msg, http_error.code, error_response) instagram_private_api.errors.ClientError: Not Found

z7pz commented 1 year ago

same for me

dev-veteran commented 1 year ago

same issue here, is there any hotfix?

elyeti commented 1 year ago

Lo mismo, ya no funciona, yo estoy usando instaloader de parrot pero no es lo mismo, que pena que esto ya no funcione

gaur-avvv commented 1 year ago

some body help us pleaaaaase

Bro only contribute can u🙄

FrankVerse commented 1 year ago

I think this service is no longer usable its been month that it been offline and no word from creator

gaur-avvv commented 1 year ago

I think this service is no longer usable its been month that it been offline and no word from creator

Creator left git🙂

theblackdeveil commented 1 year ago

I think this service is no longer usable its been month that it been offline and no word from creator

Creator left git🙂

gg💔

Irfan-Khan-I commented 1 year ago

please anyone update me if any new version of this launches or any other tool

Dexz0 commented 1 year ago

Same issue, waiting for a update or some solution by the creator

Dexz0 commented 1 year ago

I think until the middle of March solves the problem

Dexz0 commented 1 year ago

I think this service is no longer usable its been month that it been offline and no word from creator

Creator left gitslightly_smiling_face

will he come back?

dpanic commented 1 year ago

I have the same error.

dpanic commented 1 year ago

As this project is dead, is there any alternative?

locnal commented 1 year ago

As this project is dead, is there any alternative?

theres a tool called terra, but thats also having the same issue, the git creator is github.com/xadhrit/.

Like i said though, its having the same issue when you attempt to login with the updated login details, it has a twitter lookup tool built in as well.

8wolfgang8 commented 1 year ago

remove the directory and reinstall and plugin a proxy will be tedious but i think this might work also use a fake insta had to learn this one the hard way

nono233dc commented 1 year ago

Attempt to login... Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 525, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 563, in error return self._call_chain(args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(args) ^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/kali/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/kali/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/errors.py", line 135, in process raise ClientError(error_msg, http_error.code, error_response) instagram_private_api.errors.ClientError: Not Found

b4j0n1tz commented 1 year ago

Attempt to login... ClientCookieExpiredError/ClientLoginRequiredError: Cookie expired at 1628592384 Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 525, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 563, in error return self._call_chain(args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(args) ^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/kali/Escritorio/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Escritorio/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/kali/Escritorio/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Escritorio/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/errors.py", line 135, in process raise ClientError(error_msg, http_error.code, error_response) instagram_private_api.errors.ClientError: Not Found

MR1TNT commented 1 year ago

Try this: cd Osintgram/config echo "{}" > settings.json Then cd .. make setup Enter your Username Enter your Password

dhanushndk commented 11 months ago

Attempt to login... Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 525, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 563, in error return self._call_chain(args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(args) ^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/dhanu/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dhanu/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/dhanu/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/dhanu/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/errors.py", line 135, in process raise ClientError(error_msg, http_error.code, error_response) instagram_private_api.errors.ClientError: Not Found

ddorigoddorigo commented 11 months ago

Try this: cd Osintgram/config echo "{}" > settings.json Then cd .. make setup Enter your Username Enter your Password

not working. the dev left the project

majdyousef07 commented 10 months ago

this form chatGPT the error is Attempt to login... Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 525, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 563, in error return self._call_chain(args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(args) ^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/kali/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/kali/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/usr/local/lib/python3.11/dist-packages/instagram_private_api/errors.py", line 135, in process raise ClientError(error_msg, http_error.code, error_response) instagram_private_api.errors.ClientError: Not Found

chatGPT

The error you encountered seems to indicate an issue with the response from the Instagram API. The specific error "HTTP Error 404: Not Found" suggests that the resource you are trying to access does not exist or cannot be found at the specified endpoint.

Here are some steps you can take to address this issue:

  1. Check API Endpoint: Verify that the API endpoint you are using is correct and valid. Make sure that the resource you are trying to access exists and that you are using the appropriate endpoint for the action you are attempting to perform.

  2. Review Authentication: Ensure that the authentication credentials you are using are valid and have the necessary permissions to access the requested resource. Review the authentication process to confirm its correctness.

  3. Handle Error Responses: Implement proper error handling in your code to handle HTTP errors, such as the 404 error. Use try-except blocks to capture and handle specific HTTP errors, providing meaningful error messages for debugging purposes.

  4. Check for Rate Limiting: Ensure that you are not making too many requests to the Instagram API within a short time period. Exceeding rate limits can result in 404 errors or other HTTP errors. Implement rate limiting strategies in your code to avoid this issue.

  5. Review the API Documentation: Check the latest Instagram API documentation to ensure there have been no recent changes to the endpoints or the API structure that might be causing the 404 error. Stay updated with any changes to the API that might affect your script.

By following these steps, you should be able to identify and address the issue causing the 404 error when attempting to use the Instagram API in your script. If the problem persists, consider reaching out to the Instagram API support or community for further assistance. if someone can help and fix it

robertopv commented 8 months ago

A porcaria do instagram mudou a API.... O retorno da chamada de API específico que, o Instagram o descontinuou, fazendo com que o programa não funcionasse totalmente.

O que você realmente precisa fazer é:

1 - vai até o diretorio: a src 2 - procure o arquivo Osintgram.py 3 - na linha onde está escrito self.following = self.check_following() na função setTarget(self, target) 4 - comente essa linha, assim: #self.following = self.check_following(). 5 - Prontinho sejam felizes.... Isso deve funcionar.

ABDELHAMID1999 commented 8 months ago

Attempt to login... Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 525, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 563, in error return self._call_chain(args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(args) ^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/kali/Desktop/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Desktop/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/kali/Desktop/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Desktop/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/errors.py", line 135, in process raise ClientError(error_msg, http_error.code, error_response) instagram_private_api.errors.ClientError: Not Found

r4tsz commented 7 months ago

A porcaria do instagram mudou a API.... O retorno da chamada de API específico que, o Instagram o descontinuou, fazendo com que o programa não funcionasse totalmente.

O que você realmente precisa fazer é:

1 - vai até o diretorio: a src 2 - procure o arquivo Osintgram.py 3 - na linha onde está escrito self.following = self.check_following() na função setTarget(self, target) 4 - comente essa linha, assim: #self.following = self.check_following(). 5 - Prontinho sejam felizes.... Isso deve funcionar.

valeu irmão, funcionou aqui! salvou a ferramenta. tks

victorxmoreira commented 5 months ago

A porcaria do instagram mudou a API.... O retorno da chamada de API específico que, o Instagram o descontinuou, fazendo com que o programa não funcionasse totalmente.

O que você realmente precisa fazer é:

1 - vai até o diretorio: a src 2 - procure o arquivo Osintgram.py 3 - na linha onde está escrito self.following = self.check_following() na função setTarget(self, target) 4 - comente essa linha, assim: #self.following = self.check_following(). 5 - Prontinho sejam felizes.... Isso deve funcionar.

Deu certo! Vc é god.

KaliHub-01 commented 4 months ago

same error.... any solution

KaliHub-01 commented 4 months ago

Solution Flow:

Use a username and password and then use that username as the victim, (this worked)

Since the above worked, the program itself is not the issue.

The issue lies in the authentication of your account with instagram

One thought, since I just made this (BOT) account, it could be that there is an account life time that needs to true in order for the apis to work.

I used an older bot account and was able to get it working!

Use an older IG account or get a developer account.