-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r.json() #815
Comments
@ZYecho |
r is an object of ClientResponse. I don't understand your expanlation. I want to get the cookies after I login (www.zhihu.com) by posting the data. but according to documents,
how can I get the correct cookies after I login? |
@ZYecho |
Hi, @ZYecho, I think I've got your problem: await session.get('http://www.zhihu.com')
print(session.cookies) Also see updated docs in #817 |
I use python 3.5
async with session.get('http://www.zhihu.com') as r: json = await r.json()
the json = await r.json() always report Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8 is there any bugs ?
The text was updated successfully, but these errors were encountered: