Instagrapi session expires quickly #2343
Unanswered
naweed1992
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I’m having trouble with session persistence in instagrapi.
I log in using cl.login(user, password).
For one account, the session expires after ~1 day, and I have to re-login.
Another account, used on my phone, stays active for weeks.
I noticed that the mobile app used to send POST /zr/dual_tokens/ to refresh sessions, but now it seems to send GET /direct_v2/get_presence_active_now/ instead.
Questions:
Why do some accounts expire quickly while others stay alive?
Can instagrapi replicate the app’s session refresh mechanism?
Is this related to account type, activity, or some hidden flags?
Any advice or tips to maintain long-lived sessions would be great.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions