CrestMarket.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:OrderScaner 作者: Nikakto 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号