Skip to content

Commit 325020b

Browse files
author
Adriano Sanges
committed
Enhance listing extraction in scraper.py with debug output
- Add print statement to output each listing during page parsing - Facilitate debugging and verification of listing data extraction process
1 parent d59a8ff commit 325020b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

real-estate-etl/scraper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def parse_page(url: str) -> Dict[str, Optional[any]]:
3434
listings = soup.select('section.ld-layoutContentCenter')
3535
for listing in listings:
3636
# Extract title, city, neighborhood, road
37+
print(listing)
3738
title = soup.find('meta', property='og:title')
3839
city, neighbourhood, road = None, None, None
3940
if title:

0 commit comments

Comments
 (0)