Yingnan Shi
Yingnan Shi
我改了一下 get_xsrf() url从 http://www.zhihu.com/ 换成 url = "http://www.zhihu.com/explore" 就可以了. 但是之后报错是ValueError: No JSON object could be decoded。 说是在login()里面,login_code = login_page.json()这一句的问题。 我试了一下,用之前(上个周)还好用的一个spider改了一下: login_json = json.loads(r.text.encode('latin-1').decode('unicode-escape')) 但是会报错说LATIN-1有问题。 所以我在想会不会是应该用utf-8: login_code = json.loads(login_page.text.encode('utf-8').decode('unicode-escape')) 但是会仍然报错 ValueError:...
Hi Great scapper! Just encountered one issue: When I test get_account_by_id () by trying the examplar in your documentation, i.e. `account_by_id = instagram.get_account_by_id('11859524403')` it gives me ``` Traceback (most recent...