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

ClientCookieExpiredError/ClientLoginRequiredError: Cookie expired at 1628592384 #286

Closed a6thmfsin closed 3 years ago

a6thmfsin commented 3 years ago

ClientCookieExpiredError/ClientLoginRequiredError: Cookie expired at 1628592384 Traceback (most recent call last): File "/home/greyhound/Desktop/Osintgram/src/Osintgram.py", line 1114, in login self.api = AppClient( File "/home/greyhound/Desktop/Osintgram/venv/lib/python3.9/site-packages/instagram_private_api/client.py", line 165, in init raise ClientCookieExpiredError('Cookie expired at {0!s}'.format(cookie_jar.auth_expires)) instagram_private_api.errors.ClientCookieExpiredError: Cookie expired at 1628592384

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.9/urllib/request.py", line 1346, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/usr/lib/python3.9/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output self.send(msg) File "/usr/lib/python3.9/http/client.py", line 950, in send self.connect() File "/usr/lib/python3.9/http/client.py", line 1417, in connect super().connect() File "/usr/lib/python3.9/http/client.py", line 921, in connect self.sock = self._create_connection( File "/usr/lib/python3.9/socket.py", line 843, in create_connection raise err File "/usr/lib/python3.9/socket.py", line 831, in create_connection sock.connect(sa) socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/greyhound/Desktop/Osintgram/venv/lib/python3.9/site-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) File "/usr/lib/python3.9/urllib/request.py", line 517, in open response = self._open(req, data) File "/usr/lib/python3.9/urllib/request.py", line 534, in _open result = self._call_chain(self.handle_open, protocol, protocol + File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain result = func(*args) File "/usr/lib/python3.9/urllib/request.py", line 1389, in https_open return self.do_open(http.client.HTTPSConnection, req, File "/usr/lib/python3.9/urllib/request.py", line 1349, in do_open raise URLError(err) urllib.error.URLError:

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/greyhound/Desktop/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) File "/home/greyhound/Desktop/Osintgram/src/Osintgram.py", line 47, in init self.login(u, p) File "/home/greyhound/Desktop/Osintgram/src/Osintgram.py", line 1124, in login self.api = AppClient(auto_patch=True, authenticate=True, username=u, password=p, File "/home/greyhound/Desktop/Osintgram/venv/lib/python3.9/site-packages/instagram_private_api/client.py", line 208, in init self.login() File "/home/greyhound/Desktop/Osintgram/venv/lib/python3.9/site-packages/instagram_private_api/endpoints/accounts.py", line 27, in login prelogin_params = self._call_api( File "/home/greyhound/Desktop/Osintgram/venv/lib/python3.9/site-packages/instagram_private_api/client.py", line 533, in _call_api raise ClientConnectionError('{} {}'.format( instagram_private_api.errors.ClientConnectionError: URLError

a6thmfsin commented 3 years ago

Fixed it with running the make file to populate the config files idk why it didnt work otherwise. Facing some errors with the api still when i enter the gui

a6thmfsin commented 3 years ago

greyhound@LSD:~/Desktop/Osintgram$ python3 main.py null

Attempt to login... ClientError URLError (Code: 0, Response: )Traceback (most recent call last): File "/home/greyhound/Desktop/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) File "/home/greyhound/Desktop/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/greyhound/Desktop/Osintgram/src/Osintgram.py", line 58, in setTarget user = self.get_user(target) File "/home/greyhound/Desktop/Osintgram/src/Osintgram.py", line 1063, in get_user error = json.loads(e.error_response) File "/usr/lib/python3.9/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) greyhound@LSD:~/Desktop/Osintgram$ python3 main.py null

Attempt to login...

Logged as null. Target: null [366178265] [NOT FOLLOWING]

____ .
_ \ ___|| _/ | ____ ____
/ | \ / _/ |/ \ _\/ _ _ \ / \
/ | \
| | | \ | / // > | \// | Y Y \
____
/__ >|_| /_| \ /|| (__ /|_| /
\/ \/ \/ /___
/ \/ \/

Version 1.1 - Developed by Giuseppe Criscione

Type 'list' to show all allowed commands
Type 'FILE=y' to save results to files like '.txt (default is disabled)'
Type 'FILE=n' to disable saving to files'
Type 'JSON=y' to export results to a JSON files like '
.json (default is disabled)'
Type 'JSON=n' to disable exporting to files'
Run a command: JSON=y
Export to JSON: enabled list FILE=y/n Enable/disable output in a '.txt' file' JSON=y/n Enable/disable export in a '.json' file' addrs Get all registered addressed by target photos cache Clear cache of the tool captions Get target's photos captions commentdata Get a list of all the comments on the target's posts comments Get total comments of target's posts followers Get target followers followings Get users followed by target fwersemail Get email of target followers fwingsemail Get email of users followed by target fwersnumber Get phone number of target followers fwingsnumber Get phone number of users followed by target hashtags Get hashtags used by target info Get target info likes Get total likes of target's posts mediatype Get target's posts type (photo or video) photodes Get description of target's photos photos Download target's photos in output folder propic Download target's profile picture stories Download target's stories tagged Get list of users tagged by target target Set new target wcommented Get a list of user who commented target's photos wtagged Get a list of user who tagged target Run a command: fwersemail Searching for emails of target followers... this can take a few minutes Traceback (most recent call last):
File "/usr/lib/python3.9/urllib/request.py", line 1346, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/usr/lib/python3.9/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output self.send(msg) File "/usr/lib/python3.9/http/client.py", line 950, in send self.connect() File "/usr/lib/python3.9/http/client.py", line 1417, in connect super().connect() File "/usr/lib/python3.9/http/client.py", line 921, in connect self.sock = self._create_connection( File "/usr/lib/python3.9/socket.py", line 843, in create_connection raise err File "/usr/lib/python3.9/socket.py", line 831, in create_connection sock.connect(sa) socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/greyhound/.local/lib/python3.9/site-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) File "/usr/lib/python3.9/urllib/request.py", line 517, in open response = self._open(req, data) File "/usr/lib/python3.9/urllib/request.py", line 534, in _open result = self._call_chain(self.handle_open, protocol, protocol + File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain result = func(*args) File "/usr/lib/python3.9/urllib/request.py", line 1389, in https_open return self.do_open(http.client.HTTPSConnection, req, File "/usr/lib/python3.9/urllib/request.py", line 1349, in do_open raise URLError(err) urllib.error.URLError:

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/greyhound/Desktop/Osintgram/main.py", line 186, in _cmd() File "/home/greyhound/Desktop/Osintgram/src/Osintgram.py", line 1183, in get_fwersemail data = self.api.user_followers(str(self.target_id), rank_token=rank_token) File "/home/greyhound/.local/lib/python3.9/site-packages/instagram_private_api/endpoints/friendships.py", line 65, in user_followers res = self._call_api(endpoint, query=query_params) File "/home/greyhound/.local/lib/python3.9/site-packages/instagram_private_api/client.py", line 533, in _call_api raise ClientConnectionError('{} {}'.format( instagram_private_api.errors.ClientConnectionError: URLError

dominus0x commented 3 years ago

Fixed it with running the make file to populate the config files idk why it didnt work otherwise. Facing some errors with the api still when i enter the gui

and how do you do this may i ask?

ghost commented 3 years ago

Hi there, this problem is caused by the settings.json file having another users data inside it, so it is an easy fix. All you have to do is delete the contents in the file /config/settings.json.


settings.json

{...}

And replace it with:

{}

Datalux commented 3 years ago

Hi there, this problem is caused by the settings.json file having another users data inside it, so it is an easy fix. All you have to do is delete the contents in the file /config/settings.json.

settings.json

{...}

And replace it with:

{}

✔️ the solution

apambalik1337 commented 2 years ago

Hi there, this problem is caused by the settings.json file having another users data inside it, so it is an easy fix. All you have to do is delete the contents in the file /config/settings.json.

settings.json

{...}

And replace it with:

{}

cd Osintgram cd config nano settings.json

....

Done

ctrl x y enter

Thanks :)

Blackwillsz commented 2 years ago

Even leaving the settings.json {} of the error code: 400 ClientError checkpoint_challenge_required (Code: 400, Response: {"message": "challenge_required", "challenge": {"url": "https://i.instagram.com/challenge...

Please follow this link to complete the challenge: https://i.instagram.com/challenge/...

GCMenace commented 2 years ago

Attempt to login... Traceback (most recent call last): File "/home/username/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) File "/home/username/Osintgram/src/Osintgram.py", line 47, in init self.login(u, p) File "/home/username/Osintgram/src/Osintgram.py", line 1114, in login self.api = AppClient( File "/usr/local/lib/python3.10/dist-packages/instagram_private_api/client.py", line 208, in init self.login() File "/usr/local/lib/python3.10/dist-packages/instagram_private_api/endpoints/accounts.py", line 64, in login on_login_callback(self) File "/home/username/Osintgram/src/Osintgram.py", line 1117, in on_login=lambda x: self.onlogin_callback(x, settings_file)) File "/home/username/Osintgram/src/Osintgram.py", line 1151, in onlogin_callback with open(new_settings_file, 'w') as outfile: PermissionError: [Errno 13] Permission denied: 'config/settings.json'

ANY HELP IS APPRECIATED IM LEARNING KALI AND CANT SEEM TO GET PAST THIS

apambalik1337 commented 2 years ago

Attempt to login... Traceback (most recent call last): File "/home/username/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) File "/home/username/Osintgram/src/Osintgram.py", line 47, in init self.login(u, p) File "/home/username/Osintgram/src/Osintgram.py", line 1114, in login self.api = AppClient( File "/usr/local/lib/python3.10/dist-packages/instagram_private_api/client.py", line 208, in init self.login() File "/usr/local/lib/python3.10/dist-packages/instagram_private_api/endpoints/accounts.py", line 64, in login on_login_callback(self) File "/home/username/Osintgram/src/Osintgram.py", line 1117, in on_login=lambda x: self.onlogin_callback(x, settings_file)) File "/home/username/Osintgram/src/Osintgram.py", line 1151, in onlogin_callback with open(new_settings_file, 'w') as outfile: PermissionError: [Errno 13] Permission denied: 'config/settings.json'

ANY HELP IS APPRECIATED IM LEARNING KALI AND CANT SEEM TO GET PAST THIS

Try this go to directory Osintgram/config after that enter the command "nano settings.json" and then delete all the text in the file and leave only {}. After u done save it, ctrl+x, y, press enter. I hope it can fix your problem sorry for my bad English..

image

GCMenace commented 2 years ago

20220819_103515.jpg

Here's what I get with what you told me to put Your English is fine

apambalik1337 commented 2 years ago

20220819_103515.jpg Here's what I get with what you told me to put Your English is fine

are you already running the command "pip install -r requirements.txt" ?

and you run this tool with python2 or python3?

have you entered your Instagram name and password in the credentials.ini directory?

GCMenace commented 2 years ago

Finally got it I redownloaded the Command for pip install r requirements

You dropped this 👑

apambalik1337 commented 2 years ago

Finally got it I redownloaded the Command for pip install r requirements

You dropped this 👑

hehe unwelcome bro

TabrezTez commented 1 year ago

Screenshot (180) A new probleme come I cant solve can any one help

apambalik1337 commented 1 year ago

Screenshot (180) A new probleme come I cant solve can any one help

Use this command:

Cd Osintgram ls Cd config ls echo "{}" > settings.json

Back to the directory Osintgram and run it

python3 main.py target username

If it does not work. Make another dump account

ezra29 commented 1 year ago

Even leaving the settings.json {} of the error code: 400 ClientError checkpoint_challenge_required (Code: 400, Response: {"message": "challenge_required", "challenge": {"url": "https://i.instagram.com/challenge...

Please follow this link to complete the challenge: https://i.instagram.com/challenge/...

look out i.instagram is scam you can over look it

Anthonypssantos commented 1 year ago

I don't know what you're watching. I've been trying to solve this for 12 hours and nothing is working ;-;

HELP!!!


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/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) File "/home/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() File "/home/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


apambalik1337 commented 1 year ago

I don't know what you're watching. I've been trying to solve this for 12 hours and nothing is working ;-;

HELP!!!

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/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) File "/home/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() File "/home/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

Ayo i never see problem like this before 😐 i dont know how to fix this sorry but maybe you can run apt-get update then try run this tool again. Dont forget to run pip install -r requirements.txt or python3 -m pip install requirements.txt

ezra29 commented 1 year ago

it doenst work regardless brother stop watching that vid from networkchuck before you get scammed by i.instagram

Zakaria0kl commented 1 year ago

got the same issue and i tried everything

sajjad-salam commented 1 year ago

Did you find something

daniel23cc commented 1 year ago

doesn't work :c

Rockandrolla8 commented 1 year ago

i did this echo "{}" > settings.json i go back with cd .. then o pit python3 main.py target doesnt work :C

s9-exe commented 1 year ago

I don't know what you're watching. I've been trying to solve this for 12 hours and nothing is working ;-;

HELP!!!

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/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) File "/home/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/home/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() File "/home/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

Your username and password needs to be in " " in the cedentials.ini file

crpytoscooby commented 1 year ago

pleasee help!!

how should i fix this issue? image

s9-exe commented 1 year ago

Looks like a network connection problem, see if your wifi is working properly

On Thu, Apr 27, 2023 at 11:53 AM Sharvin Pharande @.***> wrote:

pleasee help!!

how should i fix this issue? [image: image] https://user-images.githubusercontent.com/52949072/234776848-f22845b8-dcfc-4581-ad2b-b3b5903072e2.png

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

apambalik1337 commented 1 year ago

Network problems

Anfask 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 "/Users/anusmacair/Documents/Tools/Osintgram/venv/lib/python3.10/site-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 525, in open response = meth(req, response) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 634, in http_response response = self.parent.error( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 563, in error return self._call_chain(args) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 496, in _call_chain result = func(args) File "/Library/Frameworks/Python.framework/Versions/3.10/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 "/Users/anusmacair/Documents/Tools/Osintgram/main.py", line 121, in api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies) File "/Users/anusmacair/Documents/Tools/Osintgram/src/Osintgram.py", line 48, in init self.setTarget(target) File "/Users/anusmacair/Documents/Tools/Osintgram/src/Osintgram.py", line 61, in setTarget self.following = self.check_following() File "/Users/anusmacair/Documents/Tools/Osintgram/src/Osintgram.py", line 1159, in check_following return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following'] File "/Users/anusmacair/Documents/Tools/Osintgram/venv/lib/python3.10/site-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/Users/anusmacair/Documents/Tools/Osintgram/venv/lib/python3.10/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

octavio1920 commented 1 year ago

Error Unauthorized: Please wait a few minutes before you try again. (Code: 401, Response: {"message":"Please wait a few minutes before you try again.","require_login":true,"status":"fail"})Please wait a few minutes before you try again.: Unauthorized: Please wait a few minutes before you try again}

help please

arthurkroth commented 1 year ago

I'm getting the following error, tried all the suggestions above:

`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 `

It works if I set the target as my own account(the same one used to log in), the error happens only when targeting others accounts. I'm targeting open accounts and I am following them.

Any suggestions?

s9-exe commented 1 year ago

Again, you have messed up in the username and password section, it should be in a JSON format, in double quotes if i remember correctly

An0n-00 commented 1 year ago

how should the credentials be saved. with or without spaces?

(example: username = "username" or username = " username "

s9-exe commented 1 year ago

if the username you are trying to use has spaces in it, then use space otherwise don't, altho instagram usernames do not support spaces so it would be "username"

An0n-00 commented 1 year ago

if the username you are trying to use has spaces in it, then use space otherwise don't, altho instagram usernames do not support spaces so it would be "username"

thx bro

apambalik1337 commented 1 year ago

how should the credentials be saved. with or without spaces?

(example: username = "username" or username = " username "

[Credentials] username = yourusername password= yourpassword

Or you can easily add your username and password when you in Osintgram directory by running "make setup"

dsgrtg35 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 "/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/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 "/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

robertopv commented 10 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.

LAjnuss11 commented 10 months ago

{}

ï deleted all the text in the json file and typed in {} but when i press ctrl x, Y, and entre and i go back in the file the text is back again and the error is still there can u pleas help me!!! Thanks!!!!