使用 requests 的結果轉成.text出現JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2019/12/04 02:55 下午
Python網路爬蟲討論版
林辰
觀看數:5
回答數:1
收藏數:1
pycrawler
pycrawler-d08
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
requests 的結果轉乘.text有時候不能直接丟入json, 有時候會報出以上錯誤, 請問要怎麼處理比較好?