def item_Load(itemID, bid, region):
if bid:
orderType = 'buy'
else:
orderType = 'sell'
url = "https://crest-tq.eveonline.com/market/"+str(region)+"/orders/"+orderType+"/?type=https://crest-tq.eveonline.com/inventory/types/"+str(itemID)+"/"
data_file = request.urlopen(url).read().decode('utf-8')
#request.urlretrieve(url, "D:/result.json")
#with open('D:/result.json') as data_file:
data = json.loads(data_file)
return data
评论列表
文章目录