nondanee / weiboPicDownloader

Download weibo images without logging-in
GNU General Public License v3.0
268 stars 63 forks source link

json.decoder.JSONDecodeError #16

Closed kybom closed 6 years ago

kybom commented 6 years ago

使用 -f 下载多个用户的资源时,会出现这个错误

62/408 Thu May  3 01:20:38 2018
SNH48-陈韫凌 5681003434
analysing weibos... 319/577Traceback (most recent call last):
  File ".\weiboPicDownloader.py", line 263, in <module>
    urls = get_urls(uid,args.video)
  File ".\weiboPicDownloader.py", line 170, in get_urls
    json_data = json.loads(response.text)
  File "D:\myprograms\p3\lib\json\__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "D:\myprograms\p3\lib\json\decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "D:\myprograms\p3\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)

使用的commit:

commit b1d94af18a90d18c454c0f28bbcccafb6eb08af6 (HEAD -> dev, origin/dev, origin/HEAD)
Author: nondanee <iminezn5656@outlook.com>
Date:   Tue May 1 23:56:18 2018 +0800

    back to old loop query logic #15