论坛的茅台程序运行一直很正常,突然就报这个错误了,小白不太懂,看提示应该是爬虫报错吧?
[Python] 纯文本查看 复制代码 Traceback (most recent call last):
File "F:\jd_maotai_seckill-master\main.py", line 23, in <module>
jd_seckill = JdSeckill()
File "F:\jd_maotai_seckill-master\jd_spider_requests.py", line 278, in __init__
self.timers = Timer()
File "F:\jd_maotai_seckill-master\timer.py", line 24, in __init__
self.diff_time = self.local_jd_time_diff()
File "F:\jd_maotai_seckill-master\timer.py", line 48, in local_jd_time_diff
return self.local_time() - self.jd_time()
File "F:\jd_maotai_seckill-master\timer.py", line 33, in jd_time
js = json.loads(ret)
File "C:\Users\dhs\AppData\Local\Programs\Python\Python39\lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\dhs\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\dhs\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) |