import requests import json headers = ‘user-agent‘: ‘Mozilla/5.0 (iPad; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.34 (Khtml, like Gecko) Version/11.0 Mobile/15A5341f Safari/604.1‘
for i in img[‘data‘][‘skins‘]: if i[‘name‘] == ‘default‘: i[‘name‘] = ‘默认‘ print(‘[皮肤]‘.format(i[‘name‘])+‘ http://ossweb-img.qq.com/images/lol/web201310/skin/big.jpg‘.format(i[‘id‘]))
#推荐装备 for i in img[‘data‘][‘blocks‘][0][‘recommended‘]: for ii in i[‘items‘]: print(‘[召唤师峡谷] ‘ +‘https://ossweb-img.qq.com/images/lol/img/item/‘+ ii[‘id‘]+‘.png‘)
for ii in img[‘data‘][‘blocks‘][0][‘recommended‘]: for ii in i[‘items‘]: print(‘[极地大乱斗] ‘ + ‘https://ossweb-img.qq.com/images/lol/img/item/‘ + ii[‘id‘]+‘.png‘)