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.23k stars 2k forks source link

instagram_private_api.errors.ClientError: Not Found #715

Open DestinyAnyaele opened 1 year ago

DestinyAnyaele commented 1 year ago

I don't why it is giving this error below

I did this with a newly created Instagram account

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.10/dist-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) File "/usr/lib/python3.10/urllib/request.py", line 525, in open response = meth(req, response) File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response response = self.parent.error( File "/usr/lib/python3.10/urllib/request.py", line 563, in error return self._call_chain(args) File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain result = func(args) File "/usr/lib/python3.10/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.10/dist-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/usr/local/lib/python3.10/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

keremsrms0721 commented 1 year ago

Any solution ????

DestinyAnyaele commented 1 year ago

Any solution ????

Nah I'm also confúsed

70KALI commented 1 year ago

yes do investigation on that account by which you have login it will work

unknownfarhan commented 1 year ago

how ?

unknownfarhan commented 1 year ago

same problem pls any one show me how to solve these error

second2falcon commented 1 year ago

If I understand the error correctly (without being an expert in Python) something has changed on Instagram's side of the code which makes the python code made by Datalux and contributors not work anymore.

gaur-avvvv commented 1 year ago

Ya install private api client from git Just copy nd paste for installation : npm install github:dilame/instagram-private-api

second2falcon commented 1 year ago

Ya install private api client from git

Just copy nd paste for installation : npm install github:dilame/instagram-private-api

Will try.

I also wanted to add, that I tried running the script in macOS, Windows and Debian, non of which worked.

second2falcon commented 1 year ago

npm install github:dilame/instagram-private-api

@dark-extension didn't work for me on macOS. Will try on Windows and Linux later.

TanmayD32 commented 1 year ago

npm install github:dilame/instagram-private-api

@dark-extension didn't work for me on macOS. Will try on Windows and Linux later.

I tried to run it on my linux machine. Still its not working for me. Maybe Instagram API got an update causing issue for us.

second2falcon commented 1 year ago

npm install github:dilame/instagram-private-api

@dark-extension didn't work for me on macOS. Will try on Windows and Linux later.

I tried to run it on my linux machine. Still its not working for me. Maybe Instagram API got an update causing issue for us.

Or maybe our Python versions are too new. I will try with python3.9 later.

gaur-avvvv commented 1 year ago

npm install github:dilame/instagram-private-api

@dark-extension didn't work for me on macOS. Will try on Windows and Linux later.

I tried to run it on my linux machine. Still its not working for me. Maybe Instagram API got an update causing issue for us.

Currently instagram updating it's api that's why we are facing these errors......... There is an external library attached to this repository named Instagram-api-key whose contributers no more doing respond. There is update required in code of repo instagram-api-key after that will work.

second2falcon commented 1 year ago

npm install github:dilame/instagram-private-api

@dark-extension didn't work for me on macOS. Will try on Windows and Linux later.

I tried to run it on my linux machine. Still its not working for me. Maybe Instagram API got an update causing issue for us.

Currently instagram updating it's api that's why we are facing these errors......... There is an external library attached to this repository named Instagram-api-key whose contributers no more doing respond. There is update required in code of repo instagram-api-key after that will work.

That still doesn't explain why seemingly a lot of other users can still use it.

gaur-avvvv commented 1 year ago

Ya u r right few days earlier I used this but now getting error, but still one of my friend using it without getting any trouble!

ansuh0260 commented 1 year ago

I am also getting same error

ansuh0260 commented 1 year ago

Ya u r right few days earlier I used this but now getting error, but still one of my friend using it without getting any trouble!

In which platform he executed without error

second2falcon commented 1 year ago

Ya u r right few days earlier I used this but now getting error, but still one of my friend using it without getting any trouble!

I guess they are rolling it out on a per user basis. No other idea how else this could be the case.

gaur-avvvv commented 1 year ago

Ya u r right few days earlier I used this but now getting error, but still one of my friend using it without getting any trouble!

In which platform he executed without error

Linux

second2falcon commented 1 year ago

Ya u r right few days earlier I used this but now getting error, but still one of my friend using it without getting any trouble!

In which platform he executed without error

Doesn't really matter. I tried Windows 10, Debian 11 and macOS Ventura, all with the same error. Currently making a VM with Kali linux, but my hopes are low.

I think there is code needing to be updated for it to work again.

ansuh0260 commented 1 year ago

Tell him to upload files in any platform and give the link here

gaur-avvvv commented 1 year ago

Ya u r right few days earlier I used this but now getting error, but still one of my friend using it without getting any trouble!

In which platform he executed without error

Doesn't really matter. I tried Windows 10, Debian 11 and macOS Ventura, all with the same error. Currently making a VM with Kali linux, but my hopes are low.

I think there is code needing to be updated for it to work again.

U r right instagram-private-api endpoint code need to upgrade after that I hope will work🥲

second2falcon commented 1 year ago

Tell him to upload files in any platform and give the link here

@ansuh0260 It still won't work. We all have the exact same files (with the exception of the credentials.ini and if someone changed anything else).

ansuh0260 commented 1 year ago

Tell him to upload files in any platform and give the link here

@ansuh0260 It still won't work. We all have the exact same files (with the exception of the credentials.ini and if someone changed anything else).

any alternative tool for this

TanmayD32 commented 1 year ago

Ya u r right few days earlier I used this but now getting error, but still one of my friend using it without getting any trouble!

Is he able to share the exact same files and python version to run?

second2falcon commented 1 year ago

Ya u r right few days earlier I used this but now getting error, but still one of my friend using it without getting any trouble!

Is he able to share the exact same files and python version to run?

I am currently setting up a VM to test different versions of Python, but I am afraid, it's not gonna make a difference.

ansuh0260 commented 1 year ago

Ya u r right few days earlier I used this but now getting error, but still one of my friend using it without getting any trouble!

Is he able to share the exact same files and python version to run?

I am currently setting up a VM to test different versions of Python, but I am afraid, it's not gonna make a difference.

Did you complete setup

ansuh0260 commented 1 year ago

Ya u r right few days earlier I used this but now getting error, but still one of my friend using it without getting any trouble!

Is he able to share the exact same files and python version to run?

I am currently setting up a VM to test different versions of Python, but I am afraid, it's not gonna make a difference.

Did error was fixed???

second2falcon commented 1 year ago

Ya u r right few days earlier I used this but now getting error, but still one of my friend using it without getting any trouble!

Is he able to share the exact same files and python version to run?

I am currently setting up a VM to test different versions of Python, but I am afraid, it's not gonna make a difference.

Did error was fixed???

I forgot about it yesterday. Will check asap

second2falcon commented 1 year ago

Ya u r right few days earlier I used this but now getting error, but still one of my friend using it without getting any trouble!

Is he able to share the exact same files and python version to run?

I am currently setting up a VM to test different versions of Python, but I am afraid, it's not gonna make a difference.

Did error was fixed???

I forgot about it yesterday. Will check asap

@ansuh0260 can confirm now that regardless of Python version, it won't work.

ansuh0260 commented 1 year ago

@second2falcon > ya it will not work

Jred0n29 commented 1 year ago

Still works?

second2falcon commented 1 year ago

Still works?

Sadly no. @Jred0n29

NikaSuara28 commented 1 year ago

Ya u r right few days earlier I used this but now getting error, but still one of my friend using it without getting any trouble!

i think the problem is in updated code. most of us are running a new version of code, but i think your friend has the old version. thats why it works

second2falcon commented 1 year ago

Ya u r right few days earlier I used this but now getting error, but still one of my friend using it without getting any trouble!

i think the problem is in updated code. most of us are running a new version of code, but i think your friend has the old version. thats why it works

This is incorrect. Instagram rolled out an API update, but first to users who were not actively using it and the later then ones using it somewhat actively.

DestinyAnyaele commented 1 year ago

Will a pull up request from your friend be possible ?

On Mon, Apr 3, 2023, 12:11 NikaSuara28 @.***> wrote:

Ya u r right few days earlier I used this but now getting error, but still one of my friend using it without getting any trouble!

i think the problem is in updated code. most of us are running a new version of code, but i think your friend has the old version. thats why it works

— Reply to this email directly, view it on GitHub https://github.com/Datalux/Osintgram/issues/715#issuecomment-1494129773, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYLAUXTD4P34QGPPEVII6B3W7KV6VANCNFSM6AAAAAAVANEDBI . You are receiving this because you authored the thread.Message ID: @.***>

preettheuser commented 1 year ago

Have you found any solution?

preettheuser commented 1 year ago

I don't why it is giving this error below

I did this with a newly created Instagram account

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.10/dist-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) File "/usr/lib/python3.10/urllib/request.py", line 525, in open response = meth(req, response) File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response response = self.parent.error( File "/usr/lib/python3.10/urllib/request.py", line 563, in error return self._call_chain(args) File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain result = func(args) File "/usr/lib/python3.10/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.10/dist-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/usr/local/lib/python3.10/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

I am gaving same issue does anyone have solution ? what should we do to solve this api error

wvm-sec commented 1 year ago

have anyone found the solution?

ansuh0260 commented 1 year ago

No found any solution....

Sent from Outlook for Androidhttps://aka.ms/AAb9ysg


From: wvm-sec @.> Sent: Friday, July 21, 2023 7:48:01 AM To: Datalux/Osintgram @.> Cc: ansuh0260 @.>; Mention @.> Subject: Re: [Datalux/Osintgram] instagram_private_api.errors.ClientError: Not Found (Issue #715)

have anyone found the solution?

— Reply to this email directly, view it on GitHubhttps://github.com/Datalux/Osintgram/issues/715#issuecomment-1644893733, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3ABJ3FKDVIAZ3P2QDLEIILXRHRFTANCNFSM6AAAAAAVANEDBI. You are receiving this because you were mentioned.Message ID: @.***>

shreyasmangal commented 10 months ago

huh

nithyasthomas commented 10 months ago

any update

maheshpremalal commented 9 months ago

@nithyasthomas @ansuh0260 @wvm-sec I have found a solution. the issue is it tries to call an api that doesn't exist anymore. in source code Osinstagram.py find this line. self.following = self.check_following() its under set_target method. comment this line and run. mine is working now in docker. I only came across this today and happy if I can help you guys.

Screenshot 2023-10-30 at 20 54 01
11NASA11 commented 7 months ago

In short, if you want to use a tool under the name (osintgram), then it’s a very easy decision! To do this, just follow the instructions in Github at the end of the simple place (Run the main.py script in one of two ways.

As an interactive hint, python3 main.py Or immediately run the command python3 main.py --command ) this is the crap we write python3 main.py (your nickname you wrote in credentials.ini) --cookies

aaaand good luck here is the Github snare https://github.com/Datalux/Osintgram

second2falcon commented 7 months ago

In short, if you want to use a tool under the name (osintgram), then it’s a very easy decision! To do this, just follow the instructions in Github at the end of the simple place (Run the main.py script in one of two ways.

As an interactive hint, python3 main.py Or immediately run the command python3 main.py --command ) this is the crap we write python3 main.py (your nickname you wrote in credentials.ini) --cookies

aaaand good luck here is the Github snare https://github.com/Datalux/Osintgram

@11NASA11 what are you trying to tell us?

That it's as easy as running main.py?

Well it's not as you would find out if you acutally tried a target which isn't the account you are logged into.

11NASA11 commented 7 months ago

@Second2falcon I'm just helping! And I solved this error when I created a new account on Instagram and did as I wrote above, after logging into Osintgram I open a window (list) after switching to a new Instagram account and subscribe to the target, after that everything is according to the instructions!!! I had this error and decided to do the same and it worked!

11NASA11 commented 7 months ago

https://www.youtube.com/watch?v=W0f724gAtOE&ab_channel=CyberSocialHub I will also say that this method is for Kali Linux

11NASA11 commented 7 months ago

At first I also thought that I needed to write the nickname of the person you want to get through! But it turned out that there was an error in the instructions and over time the methodology changed and the instructions say (python3 -m venv venv) Create a virtual environment for this project and then write in Linux and Git Bash: source (venv/bin/activate), but! ! In Linux there is no longer the creation of a virtual environment and it must be installed separately <( sudo apt install python3-virtualenv )> and then everything is as in the instructions!

Sorry for any grammatical errors, I'm neither American nor foreigner!

11NASA11 commented 7 months ago

111 311

gangundidp commented 4 months ago

@nithyasthomas @ansuh0260 @wvm-sec I have found a solution. the issue is it tries to call an api that doesn't exist anymore. in source code Osinstagram.py find this line. self.following = self.check_following() its under set_target method. comment this line and run. mine is working now in docker. I only came across this today and happy if I can help you guys.

Screenshot 2023-10-30 at 20 54 01

This is working..

second2falcon commented 4 months ago

@nithyasthomas @ansuh0260 @wvm-sec I have found a solution. the issue is it tries to call an api that doesn't exist anymore. in source code Osinstagram.py find this line. self.following = self.check_following() its under set_target method. comment this line and run. mine is working now in docker. I only came across this today and happy if I can help you guys.

Screenshot 2023-10-30 at 20 54 01

This is working..

@gangundidp Does it only work on yourself or also on other users?