Skip to content

Commit

Permalink
Fix euro bydlení scrameru, když chybí cena
Browse files Browse the repository at this point in the history
  • Loading branch information
janchaloupka committed Dec 4, 2023
1 parent 229d5e4 commit bcc936f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scrapers/scraper_euro_bydleni.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def get_latest_offers(self) -> list[RentalOffer]:
link = urljoin(self.base_url, title.find("a").get('href')),
title = title.get_text().strip(),
location = details[1].get_text().strip(),
price = int(re.sub(r"[^\d]", "", details[0].get_text())),
price = int(re.sub(r"[^\d]", "", details[0].get_text()) or "0"),
image_url = "https:" + image_container.find("img").get("src")
))

Expand Down

0 comments on commit bcc936f

Please sign in to comment.