爪巴虫!实战!

派森!启动!

浏览器!启动!

F12!启动!
源码!看不懂!
派恰姆!启动!
以下是源码,爬旧博客的相册:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
import requests
import re
url="https://old.descentdd.top/about/"

response=requests.get(url=url)
response=re.findall("<img src=\"(.*?)\" class=\"responsive-img\">",response.text)
for i in range(len(response)):
response[i]="https://old.descentdd.top/"+response[i][3:]
print(response)
for i in range(len(response)):
req=requests.get(response[i])
with open(f"a{i}.png","wb")as f:
f.write(req.content)
print("done")

派森!关闭

圆神!启动!