Taj Bowness
Taj Bowness
Use login_by_sessionid(sessionid: str)
When you've cl.dump_settings(f"data/{generated_uuid}.json") it created a json with ur login session info. you can find it in their, format like this: user_settings = cl.load_settings(path to folder) cl.login_by_sessionid(user_settings["authorization_data"]["sessionid"]) Here is an...
Share more code before cl.login, as in the exception your shared code isn't noted at all... > File "E:\JMM\JMMProjects\SMLT\scrapers\insta.py", line 1, in > from instagrapi import Client > File "E:\JMM\JMMProjects\SMLT\myenv\lib\site-packages\instagrapi__init__.py",...
Like to note for anyone with this issue, that as a result of this I swapped to making a private request instead for fetching user info: `user_info_dict = cl.user_info_by_username_v1(username).dict()`
> Problem for me is that with the `_v1` method, I get a `429` error every time. Not sure exactly, why (I think, I already tried waiting some time and...
> @tajbowness I get the error in the console, not sure, if it's also logged. > > This might not be a problem of instagrapi. Not sure. Possibly, it is...
I think you've included your password in the traceback. Last line `instagrapi.exceptions.UnknownError: consent_required ` Hints that you may have 2FA?
Possibly an issue with the user agent Otherwise use `login_by_sessionid` https://github.com/subzeroid/instagrapi/blob/master/docs/usage-guide/best-practices.md
Similar issue: https://github.com/subzeroid/instagrapi/issues/1851#issue-2204514201
Instagram has banned your session. Create a new session id and relog https://subzeroid.github.io/instagrapi/usage-guide/interactions.html https://github.com/subzeroid/instagrapi/blob/master/docs/usage-guide/best-practices.md