Skip to content

Commit

Permalink
Merge pull request #218 from Crinibus/fix-computersalg-handler
Browse files Browse the repository at this point in the history
Fix getting product name in ComputerSalgHandler
  • Loading branch information
Crinibus authored Apr 19, 2023
2 parents 9295844 + 008e9c6 commit 3116bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper/domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def get_short_url(self) -> str:

class ComputerSalgHandler(BaseWebsiteHandler):
def _get_product_name(self) -> str:
return self.request_data.find("header", class_="product-header grid_20").hgroup.h1.text
return self.request_data.find("meta", {"name": "title"})["content"]

def _get_product_price(self) -> float:
return float(self.request_data.find("span", itemprop="price").text.strip().replace(".", "").replace(",", "."))
Expand Down

0 comments on commit 3116bab

Please sign in to comment.