guys!I am trying to use python to build a crawler,the wen provided me an API,but my breaks with Jsondecodeerror :expecting value:char(0).I wonder if you can provide me some suggestions.Many Thanks!
this is my code:
import urllib.request as urlrequest import requests import json import xlsxwriter url = "http://wits.worldbank.org/API/V1/SDMX/V21/datasource/TRN/reporter/840/partner/000/product/all/year/2000/datatype/reported" data = requests.get(url).json()
Then,it's broken by json.decoder.JSONDecodeerrorError:Expecting Value:line 1 column1 char(0)
没有评论:
发表评论