Cохранить данные в csv в виде таблицы
Есть код
res = requests.get('https://pilomaterialov.net/vagonka/')
soup = BeautifulSoup(res.text, 'lxml')
items_cards = soup.find_all("div", class_="product-wrap b1c-good col-lg-4 col-md-4 col-sm-6 col-xs-12")
for item in items_cards:
product_name = item.find("h2", class_="product-name b1c-name").text.strip()
price_for = item.find("div", class_="product-field-display").text.strip()
product_price = item.find("span", class_="PricesalesPrice").text.strip()
all_a = item.find("img", class_="browseProductImage").get("src")
# print(f"title: {product_name} - price: {product_price} - price_fo
Источник: Stack Overflow на русском