万物皆可爬系列使用python爬阴阳师图片
document.querySelectorAll('body > div.wrap > div.main > div > div.result-list > ul > li > img').forEach(a => {l.push(a.src)})
l = ["图片列表"]
for i in l:
r = requests.get(i)
if not os.path.exists("./img"):
os.mkdir("./img")
print(i)
time.sleep(0.5)
with open('./img/' + i.split('/')[-1], 'wb') as f:
f.write(r.content)