Open szymonszl opened 4 years ago
The cookie stuff is a bit hacky (relying on private aiohttp fields), so maybe try pickle instead of json for storing the cookies.
I can confirm logging in with cookies seems to work fine if you pickle the session_cookies
.
I keep getting null/None as the cookies when I client.get_session()
Also how do you use the pickel thing?
Description of the problem
Trying to pass a set of cookies to the
Client
fails with two exceptions, one describing the fail to load them and another one fromaiohttp
related to it. It seems to be a problem with loading a cookie jar from the dict. The client logs in correctly, but it needs to log in every time instead of reusing sessions which increases the chance of getting blocked by facebook.Code to reproduce
Traceback
Environment information