Open LilStreaker opened 1 year ago
You can use older versions of python?
I have the same issue, and I can't seem to get around this issue...
To solve the issue you're experiencing with the Instagram Private API library and the "Not Found" error, you can follow these steps:
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.
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).
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.
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."
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.
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.
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.
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
any updates? i am trying to find a solution the last 2 days
any updates? i am trying to find a solution the last 2 days
did you get any solution ?
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: @.***>
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