您需要先显示商品的最低价格
import requests
from bs4 import BeautifulSoup
for i in range(1, 6):
print(f"Parsing {i} page")
url = "https://cvetland.kz/almaty/product-category/catalog/?utm_term=%D0%B4%D0%BE%D1%81%D1%82%D0%B0%D0%B2%D0%BA%D0%B0%20%D1%86%D0%B2%D0%B5%D1%82%D0%BE%D0%B2%20%D0%BD%D0%B0%20%D0%B4%D0%BE%D0%BC%20%D0%BA%D1%80%D1%83%D0%B3%D0%BB%D0%BE%D1%81%D1%83%D1%82%D0%BE%D1%87%D0%BD%D0%BE&matchtype=b&utm_source=google&utm_medium=cpc&utm_campaign=!Zakaz_zvetov_|_Poisk_|_Almaty&gad=1&gclid=EAIaIQobChMIuuHfz7CvgQMVWQkGAB0OaASIEAAYAiAAEgI1GfD_BwE{i}/"
response = requests.get(url)
soup = BeautifulSoup(response.text, 'lxml')
names = soup.find_all("a", class_ = "question__title-link question__title-link_list")
prices = soup.find_all("span", class_ = "woocommerce-Price-amount amount")
for j in range(0, len(names)):
print(names[j].text)
for j in range(0, len(prices)):
print(prices[j].text)