From a90f225023d9d2515fc98723d618f7432eef483c Mon Sep 17 00:00:00 2001 From: Crinibus <57172157+Crinibus@users.noreply.github.com> Date: Wed, 5 Oct 2022 19:04:46 +0200 Subject: [PATCH] Fix where to find name for ComputerSalgHandler --- scraper/domains.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper/domains.py b/scraper/domains.py index 0daafb40..1790ec21 100644 --- a/scraper/domains.py +++ b/scraper/domains.py @@ -137,7 +137,7 @@ def get_short_url(self) -> str: class ComputerSalgHandler(BaseWebsiteHandler): def _get_product_name(self) -> str: - return self.request_data.find("h1", itemprop="name").text + return self.request_data.find("header", class_="product-header grid_20").hgroup.h1.text def _get_product_price(self) -> float: return float(self.request_data.find("span", itemprop="price").text.strip().replace(".", "").replace(",", "."))