Skip to content

Commit 7af4c9b

Browse files
committed
update and detect expired property page urls
1 parent e6e8195 commit 7af4c9b

File tree

3 files changed

+431
-842
lines changed

3 files changed

+431
-842
lines changed

immowelt-scraper/immowelt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ async def scrape_properties(urls: List[str]) -> List[Dict]:
6565
async for response in SCRAPFLY.concurrent_scrape(to_scrape):
6666
try:
6767
data = parse_property_pages(response)
68+
if "sections" not in data:
69+
raise Exception("required schmea is not fullfilled")
6870
properties.append(data)
6971
except Exception as e:
7072
log.warning("expired property page: {}", e)

0 commit comments

Comments
 (0)