yu961549745/WeiboBlackList

Python 3.6.3 / Win 10 运行py_v2提示json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Closed this issue · 4 comments

Traceback (most recent call last):
File "run.py", line 40, in
retJson = json.loads(retText)
File "C:\Users\xxx\AppData\Local\Programs\Python\Python36\lib\json_init_.py", line 354, in loads
return _default_decoder.decode(s)
File "C:\Users\xxx\AppData\Local\Programs\Python\Python36\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\xxx\AppData\Local\Programs\Python\Python36\lib\json\decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

目测没有 关闭登陆保护

检查了下,登陆保护是关闭状态的

我去看看手机端的

emmmm,这就不太清楚了,为了方便我还是比较推荐 JS 脚本。

好的,一开始JS脚本也不行的,怀疑是用了http访问,改成https访问就好了