Skip to content

Commit 80b0f3a

Browse files
authored
Merge pull request #96 from MaineDSA/fix_price_extraction
handle new price format
2 parents bc6a110 + 279d268 commit 80b0f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scraper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ZillowCardParser:
3434
_PATTERN_BED_NUM = re.compile(r"\d+")
3535

3636
PRICE_CLEANUP_PATTERNS: ClassVar[list[tuple[str, str, re.RegexFlag]]] = [
37-
(r"\+?\s*\d+\s*bds?(?:\s|$)", "", re.IGNORECASE),
37+
(r"\s+\d+\s*bds?(?:\s|$)", "", re.IGNORECASE),
3838
(r"\+?\s*bd(?:\s|$)", "", re.IGNORECASE),
3939
(r"\s+", " ", re.NOFLAG),
4040
]

0 commit comments

Comments
 (0)