Python爬取王者荣耀英雄图片 爬虫,下图片,很简单,直接上代码 import requests import os import json def get_hero_id(): idlist = [] namelist = [] try: response = json.loads(requests.get('https://pvp.qq.com/web201605/js/herolist.json').content.decode()) for item in response: idlist.append(