source = requests.get(result_page).content
soup = BeautifulSoup(source,'lxml')
soup
product = soup.find('a', class_= '_2cLu-l').get('href')
product_url = website_url+product
product_url
运行良好。
source = requests.get(product_url).content
soup = BeautifulSoup(source, 'lxml')
reviews_url=soup.find('a',class_='swINJg _3nrCtb').parent.get('href')
此父级显示Nonetype错误