import requests
import ualist
from urllib.parse import urlencode
import re
#有几页
page = 9
def get_name(html):
tmp = re.findall('class="product-model__name">(.+)参数',html)
if tmp:
return tmp[0]
else:
return''
def get_price(html):
tmp = re.findall('class="product-model__name">(.+)参数',html)
if tmp:
return tmp[0]
else:
return''
点击空白处退出提示
评论