|
楼主 |
发表于 2017-9-30 13:34:54
|
显示全部楼层
关于您在“有谁采集过知乎的图片么?求可行经验”的帖子
关于知乎采集的脚本,我在WINDOWS 10运行出现以下错误。不知道你这边是否有遇到过没有?
”=====开始解析======
+++++正在解析第1页+++++
Traceback (most recent call last):
File "zhihu_picture_downloader.py", line 149, in <module>
pics=get_pic_from_topic(id,offset)
File "zhihu_picture_downloader.py", line 116, in get_pic_from_topic
dat=json.loads(js_data.content)['msg']
File "C:\Python27\lib\json\__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "C:\Python27\lib\json\decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Python27\lib\json\decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded“ |
|