数据接口 import requests # 1.对数据接口发送请求 response = requests.get('https://game.gtimg.cn/images/lol/act/img/js/heroList/hero_list.j s') # 2.获取请求结果 result = response.json() # 3.解析数据 for x in result['hero']: print(x['title'], x['goldPrice']) 浏览器找数据接口步骤: *最后headers中request URL就是我们找的数据接口