Skip to content

Commit

Permalink
Merge pull request #249 from Crinibus/fix/AvXpertenHandler-product-price
Browse files Browse the repository at this point in the history
Fix AvXpertenHandler get product price
  • Loading branch information
Crinibus authored Jul 13, 2024
2 parents 4cfa9d0 + c07eb06 commit aa9107b
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 @@ -212,7 +212,7 @@ def _get_product_name(self) -> str:
return self.request_data.find("div", class_="content-head").h1.text.strip()

def _get_product_price(self) -> float:
return float(self.request_data.find("div", class_="price").text.replace("\xa0DKK", ""))
return float(self.request_data.find("div", class_="price").text.replace("\xa0DKK", "").replace(" DKK", ""))

def _get_product_currency(self) -> str:
return self.script_json.get("offers").get("priceCurrency")
Expand Down

0 comments on commit aa9107b

Please sign in to comment.