import requests
from lxml import etree
for i in range(1,895):
'''
url0="https://fgowiki.com/guide/equipdetail/894?p=pc" #网页地址
res=requests.get(url0)
content=res.content
html=etree.HTML(content)
name=html.xpath('//*[@id="row-move"]/div[2]/div/div[2]/div/div/table[1]/tbody/tr[1]/th[1]') #得到文件名
'''
url = "https://img.fgowiki.com/fgo/card/equip/"+str(i)+"A.png" #图片地址
img = requests.get(url)
f = open("E:\\fgo\\" + str(i)+".png", 'wb')
f.write(img.content) #写入到文件
f.close()
print(i, "finished")