linkedin-api icon indicating copy to clipboard operation
linkedin-api copied to clipboard

Linkedin Session Expired Exceptions

Open alexanderfeinberg opened this issue 4 years ago • 3 comments

I'm not really sure how to get around this exception in order to log back in using this API. All accounts I've used this API on previously are receiving the LinkedinSessionExpired exception, so the cookies are expired, any suggestions on how to reauntheticate and get new cookies using the API?

alexanderfeinberg avatar Feb 24 '21 03:02 alexanderfeinberg

@alexander1fein , have you tried something like this? linkedin = Linkedin(*credentials, **refresh_cookies=True**)

ssichynskyi avatar Mar 30 '21 17:03 ssichynskyi

Yes, it didn't work, neither did cookies=None and cookies_dir=None

alexanderfeinberg avatar Apr 05 '21 00:04 alexanderfeinberg

@alexander1fein for me this changing refresh_cookies from default to True fixed the problem.

ssichynskyi avatar Apr 05 '21 08:04 ssichynskyi