python3.6
import requests
import re
for n in range(1,51):
html = requests.get('http://www.doutula.com/photo/list/?page={}'.format(n)).content
image_url = re.findall('data-original="(.*?)!dta"',html.decode())
for i in image_url:
image = requests.get(i).content
image_name_list = i.split('/')
image_name = image_name_list[-1]
f = open(image_name,'wb')
f.write(image)
f.close()
print('爬取完成第{}页'.format(n))