原文:【python】json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)!!!

一 问题:json.decoder.JSONDecodeError: Expecting value: line column char 二 原因:request的GET请求 POST请求,反作用域为空的异常未考虑 三 代码描述:未做空返回判断,我是因为调用的接口函数错误导致。 四 接口描述:这种类型的接口返回没有json返回,所以反作用域报错。 ...

2020-07-01 19:23 0 4435 推荐指数:

查看详情

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

上篇博客提到了爬取动态数据,但是在构造request_url时,其中的url我用的浏览器的网址,但是经过运行发现,有时可以运行成功,有时 Traceback (most recent call last):File “D:/spider/product.py”, line ...

Sat Feb 08 20:56:00 CST 2020 0 32123
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM