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

Is there anyone who help me in this problem #839

Open LilStreaker opened 1 year ago

LilStreaker commented 1 year ago

0) Traceback (most recent call last): File "/home/kali/Osintgram/venv/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/Osintgram/venv/lib/python3.11/site-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/home/kali/Osintgram/venv/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

Tom-affleck commented 1 year ago

You can use older versions of python?

Overthinker-Codes commented 1 year ago

I have the same issue, and I can't seem to get around this issue...

pradumon14 commented 1 year ago

To solve the issue you're experiencing with the Instagram Private API library and the "Not Found" error, you can follow these steps:

  1. Verify the Target User: Double-check the target user's identifier (username or user ID) that you're passing to the API. Ensure that it is correct and corresponds to an existing user on Instagram.

  2. Review API Documentation: Refer to the documentation of the Instagram Private API library you're using. Look for any specific requirements or limitations when making API calls, especially related to the endpoint you are using (check_following() in this case).

  3. Check API Endpoint: Review the specific API endpoint being used in the check_following() method. Make sure you are using the correct endpoint to retrieve the target user's following information.

  4. Handle Exceptions: Modify your code to handle exceptions gracefully. Since you are already catching the initial exception and raising a ClientError in your code, you can consider adding more detailed error handling to provide informative messages to the user. For example, you can catch the ClientError and print a message like "The requested user was not found on Instagram."

  5. Debugging and Logging: Implement debugging and logging techniques to track the flow of your code and identify any potential issues. Add print statements or log messages at different stages of the code to see the values of variables and confirm that they are as expected.

  6. Test with Different Users: If possible, try testing your code with different target users to see if the issue is specific to a particular user or if it persists across multiple users. This can help you determine whether the issue is with the user's account or your code.

  7. Update Dependencies: Check if there are any updates available for the Instagram Private API library or any related dependencies. Updating to the latest versions may resolve any known issues or bugs.

By following these steps, you should be able to identify and resolve the "Not Found" error you're encountering with the Instagram Private API library.

The0wh0watches commented 1 year ago

I'm not sure what im doing wrong but I got this error message:

Attempt to login... Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/home/ybethegod/.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/ybethegod/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ybethegod/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/ybethegod/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() ^^^^^^^^^^^^^^^^^^^^^^ File "/home/ybethegod/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ybethegod/.local/lib/python3.11/site-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/home/ybethegod/.local/lib/python3.11/site-packages/instagram_private_api/errors.py", line 141, in process raise ClientError(error_msg, http_error.code, error_response) instagram_private_api.errors.ClientError: Not Found

kappax10 commented 1 year ago

any updates? i am trying to find a solution the last 2 days

koborobo commented 5 months ago

any updates? i am trying to find a solution the last 2 days

did you get any solution ?

kappax10 commented 5 months ago

sadly no one responded with an actual solution to the problem

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Χωρίς ιούς.www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sun, May 26, 2024 at 4:04 PM koborobo @.***> wrote:

any updates? i am trying to find a solution the last 2 days

did you get any solution ?

— Reply to this email directly, view it on GitHub https://github.com/Datalux/Osintgram/issues/839#issuecomment-2132214113, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBGW76REYUP5ARG6Z72RRZ3ZEHMUJAVCNFSM6AAAAAAZQKDOG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZSGIYTIMJRGM . You are receiving this because you commented.Message ID: @.***>