zxxk_dl 工具运行时报 JSONDecodeError #8
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题描述 (Description)
在运行
zxxk_dl工具时遇到了JSONDecodeError错误,无法正常使用。重现步骤 (Steps to Reproduce)
zxxk_dl目录,运行python main.py。环境信息 (Environment)
错误日志 (Error Log)
D:\zxxk_dl>python main.py
ID: 57248282
D:\Python\Lib\site-packages\urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host 'www.zxxk.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
warnings.warn(
Traceback (most recent call last):
File "D:\Python\Lib\site-packages\requests\models.py", line 978, in json
return complexjson.loads(self.text, **kwargs)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Lib\json_init_.py", line 352, in loads
return _default_decoder.decode(s)
~~~~~~~~~~~~~~~~~~~~~~~^^^
File "D:\Python\Lib\json\decoder.py", line 345, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Lib\json\decoder.py", line 363, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\zxxk_dl\main.py", line 81, in
main()
~~~~^^
File "D:\zxxk_dl\main.py", line 38, in main
ret=response.json()["data"]
~~~~~~~~~~~~~^^
File "D:\Python\Lib\site-packages\requests\models.py", line 982, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
请前往
https://github.com/flt6/tools
提issue,这里是我个人存代码的地方。
另外zxxdl已经放弃维护了