Osintgram icon indicating copy to clipboard operation
Osintgram copied to clipboard

error in getting numbers

Open abutalib1645 opened this issue 1 year ago • 3 comments

File "/home/kali/Desktop/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 519, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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 1391, in https_open return self.do_open(http.client.HTTPSConnection, req, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 1352, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/http/client.py", line 1390, in getresponse response.begin() File "/usr/lib/python3.11/http/client.py", line 325, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/http/client.py", line 286, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/socket.py", line 706, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/ssl.py", line 1314, in recv_into return self.read(nbytes, buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/ssl.py", line 1166, in read return self._sslobj.read(len, buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/kali/Desktop/Osintgram/main.py", line 186, in _cmd() File "/home/kali/Desktop/Osintgram/src/Osintgram.py", line 1450, in get_fwingsnumber user = self.api.user_info(str(follow['id'])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Desktop/Osintgram/venv/lib/python3.11/site-packages/instagram_private_api/endpoints/users.py", line 17, in user_info res = self._call_api('users/{user_id!s}/info/'.format(**{'user_id': user_id})) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Desktop/Osintgram/venv/lib/python3.11/site-packages/instagram_private_api/client.py", line 533, in _call_api raise ClientConnectionError('{} {}'.format( instagram_private_api.errors.ClientConnectionError: TimeoutError The read operation timed out

abutalib1645 avatar May 22 '24 12:05 abutalib1645

1 . Navigate to the source directory: Go to the directory named "src" in your file system.

2 . Open the Osintgram.py file for editing: Use a text editor to open the file named "Osintgram.py" within the "src" directory.

3 . Find the specific function: Look for the line that contains self.following = self.check_following() within the file.

4 . Comment out the function: Once you find the line, add a # symbol at the beginning of the line to comment it out: -- > #self.following = self.check_following()

5 . Save your changes: Save the file after making the modification.

6 . You're all set! Your changes have been applied to the Osintgram.py file.

maazm7d avatar Jun 01 '24 10:06 maazm7d

Tried the above method of commenting yet not working

Traceback (most recent call last): File "/home/astrokhacknag/.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 401: Unauthorized

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/astrokhacknag/Osintgram/main.py", line 186, in _cmd() File "/home/astrokhacknag/Osintgram/src/Osintgram.py", line 1516, in get_fwersnumber results = self.api.user_following(str(self.target_id), rank_token=rank_token, max_id=next_max_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/astrokhacknag/.local/lib/python3.11/site-packages/instagram_private_api/endpoints/friendships.py", line 40, in user_following res = self._call_api(endpoint, query=query_params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/astrokhacknag/.local/lib/python3.11/site-packages/instagram_private_api/client.py", line 527, in _call_api ErrorHandler.process(e, error_response) File "/home/astrokhacknag/.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: Unauthorized: Please wait a few minutes before you try again.

Roy-Sudo-int avatar Jun 07 '24 10:06 Roy-Sudo-int

I have the same problem... :(

servicomf5 avatar Jun 10 '24 16:06 servicomf5