Open unanan opened 6 years ago
@UnaPlugin I'm not so sure what had happened, maybe you could print out the string
passed to json.loads
and see why it's unexpected.
@unaplugin I have the same issue, the string
passed to the json.loads
is File not found
. And I found on 08/06/2018 that weibo.com
doesn't support login only with cookies, but with headers which contains cookies. It works fine. I create a pr or you can also go to my forked repo to see how it works.
@CharlesLiu7 Sorry, but I couldn't reproduce the login issue as you described.
As for #11, maybe the Host
field in your header was occasionally verified due to unknown reasons, since requests has provided a default header and will automatically set the Cookie
field with the value passed to cookies
.
@unaplugin The reason that I can reproduce your problem is that I am still not login with my cookies string. And I find out that cookies string with SCF
, SSOLoginState
, SUB
, SUHB
values is enough for me. As for #11, now I think it is useless.
The detailed Log:
I'm new in crawling images on Weibo. So I guess it is because the string I sent to the method json.loads is wrong. I can't find a solution that really works. Can you help me on solving this? Thx in advance.