爬取英雄联盟全皮肤
import osimport requests as sgbyg
def _(j):
for i in j:
yield i["name"], i["mainImg"]
path = os.path.expanduser("~").replace('\\', '/') + '/Desktop/英雄联盟全皮肤'
if not os.path.exists(path): os.makedirs(path)
for sg in sgbyg.get("https://game.gtimg.cn/images/lol/act/img/js/heroList/hero_list.js").json()["hero"]:
for __ in }.js').json()["skins"])]:
print("正在下载:", __, __)
with open(f"{path}/{__}.jpg", "wb") as f:
f.write(sgbyg.get(__).content)
已打包 成品下载地址回复可见---> **** Hidden Message *****
多谢楼主分享 谢谢大佬 谢谢大牛 6666666666 先收藏了,万一用到呢 感谢楼主分享!大牛有你更精彩! 谢谢分享! 纯顶贴!本回复没有任何技术含量。 谢谢@Thanks!