Open KingMughal1 opened 3 years ago
got a solution yet?
Just do
pip install instagram_private_api
Now I am getting another issue, Just an FYI I removed and installed Osintgram
Traceback (most recent call last):
File "main.py", line 3, in
Python version used?
The python version is 3.5.3, I also installed python3-pip but wasn't able to find the version.
try to go to instagram from the same pc you are Osintgram, login and solve any captcha or fill out your 2FA.
at the bottom of your log file is states "challenge" so I can assume you need to challenge your captcha or 2FA through instagram
now i get the error like this
Traceback (most recent call last):
File "/home/madhavpurohit/Osintgram/main.py", line 3, in
I get this message when starting Osintgram
Attempt to login... ClientCookieExpiredError/ClientLoginRequiredError: Cookie expired at 1628592384 Traceback (most recent call last): File "/home/kbawais/Osintgram/src/Osintgram.py", line 1117, in login on_login=lambda x: self.onlogin_callback(x, settings_file)) File "/home/kbawais/Osintgram/venv/lib/python3.7/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 "/home/kbawais/Osintgram/venv/lib/python3.7/site-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) File "/usr/lib/python3.7/urllib/request.py", line 531, in open response = meth(req, response) File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python3.7/urllib/request.py", line 569, in error return self._call_chain(args) File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain result = func(args) File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 400: Bad Request
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "main.py", line 121, in
api = Osintgram(args.id, args.file, args.json, args.command, args.output, args.cookies)
File "/home/kbawais/Osintgram/src/Osintgram.py", line 47, in init
self.login(u, p)
File "/home/kbawais/Osintgram/src/Osintgram.py", line 1125, in login
on_login=lambda x: self.onlogin_callback(x, settings_file))
File "/home/kbawais/Osintgram/venv/lib/python3.7/site-packages/instagram_private_api/client.py", line 208, in init
self.login()
File "/home/kbawais/Osintgram/venv/lib/python3.7/site-packages/instagram_private_api/endpoints/accounts.py", line 50, in login
'accounts/login/', params=login_params, return_response=True)
File "/home/kbawais/Osintgram/venv/lib/python3.7/site-packages/instagram_private_api/client.py", line 527, in _call_api
ErrorHandler.process(e, error_response)
File "/home/kbawais/Osintgram/venv/lib/python3.7/site-packages/instagram_private_api/errors.py", line 125, in process
error_response=json.dumps(error_obj)
instagram_private_api.errors.ClientCheckpointRequiredError: checkpoint_challenge_required