0x1获取游戏数据
http://127.0.0.1:2999/liveclientdata/allgamedata
0x2获取英雄数据
https://game.gtimg.cn/images/lol/act/img/js/heroList/hero_list.js
0x3获取技能数据
https://game.gtimg.cn/images/lol/act/img/js/hero/{英雄的heroId}.js
0x0脚本源码
import requests
import json
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.87 Safari/537.36',
}
def alllist():
"""
获取所有英雄
"""
url = "https://game.gtimg.cn/images/lol/act/img/js/heroList/hero_list.js"
try:
r = requests.get(url=url, headers=headers,)
r.raise_for_status()
r.encoding = r.apparent_encoding
print(r.text)
return r.text
except:
return '操作异常'
def dw_png(url):
try:
r = requests