爬去图片
import requests
import re
from lxml import etree
from urllib3 import request
# 页数
def page(url,totalpage):
changepage=[]
for i in range(1,totalpage+1):
page_number=re.sub('/page/\d+','/page/%s'%i,url,re.S)
changepage.append(page_number)
return(