Overview
What It Does
- Pulls every new listing posted since the last run across multiple districts, with a safety overlap window on the first run so nothing near the boundary gets missed.
- Enriches each listing with detail-page data and public council valuation fields (capital value, decade built, last sale date).
- Writes to two places: a durable dataset store as the permanent raw record, and an append-only Google Sheet via a service-account credential, so a spreadsheet failure never costs the raw data.
- De-duplicates twice: once within each run, and again against everything already in the sheet, so re-runs and overlapping windows never create duplicate rows.