Skip to content

Commit

Permalink
Merge pull request #7 from janchaloupka/euro-bydleni-price-fix
Browse files Browse the repository at this point in the history
Fix euro bydlení scrameru, když chybí cena
  • Loading branch information
janchaloupka authored Dec 4, 2023
2 parents 229d5e4 + bcc936f commit fc37b8c
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 fc37b8c

Please sign in to comment.