Project Hub

Project · Egypt real estate price tracker

Our asking price per m² against 5,619 competing listings, every week

The problem

A developer selling units in Egypt's growth areas checks competing listings by hand now and then. Nobody can say how its price per m² compares, or who cut their price.

The solution

A weekly pipeline reads asking prices on the main listing sites, checks every row, keeps each price with its week, and compares our units with the same type and area, by compound and developer, in Power BI.

How it works

  • Collect: Asking prices read weekly from the listing sites, area by area
  • Check: Each row needs a price, size, area and type; a failing row is set aside with its reason
  • Store: Every price kept with its week, never overwritten
  • Compare: Our units against listings of the same type and area, by compound and developer
  • Report: Power BI: gaps by area, compound and developer, and who cut prices

A closer look

Pipeline diagram: four listing sites read by Airflow, two sites saved by hand and our units file flow through bronze, silver and gold tables to a weekly report and a Power BI report.
The weekly pipeline, from the listing sites to the report.
Data flow: one box per step, in run order, from the input files to the report.
The steps, in run order.
Star schema: two fact tables, 5,757 listing prices and our 60 units, share 6 areas, 1,291 compounds and 11 property types, with 6 sites and one week on the listing side.
Two facts on shared dimensions.
Airflow graph view of a successful run: one extract task per site side by side, then load_silver, build_gold and report.
The Airflow DAG, run every week.
Query on silver.quarantine: the rejected rows of one run week counted by reason and site, such as a price per square metre outside the allowed band.
Rows that fail a check are kept with their reason, never dropped.
Run log query for the week of 4 October 2026: six sites read 1,206 pages and parsed 6,854 rows, of which 935 were skipped, 121 were duplicates, 5,757 were saved and 41 were quarantined, and every site reconciles.
Every parsed row is accounted for, site by site.

The code

"source": source,
"source_listing_id": str(listing_id),
"url": url,
"area_id": area_id,
"compound": " ".join(compound.split()) if compound else None,
"developer": " ".join(developer.split()) if developer else None,
"unit_type": unit_type(label),
"bedrooms": integer(bedrooms),
"bathrooms": integer(bathrooms),
"size_m2": decimal(size),
"asking_price": decimal(price),
"listed_on": listed_on,
sites.py

The impact

  • Our price per m² against the market every week, area by area.
  • Where we ask most above the median of the type.
  • A competitor's cut shows in the next weekly run.
  • Failing rows set aside with a reason, never dropped.

The result

5,619 competing listings from 6 sites in 6 areas, covering 1,152 compounds and 307 developers. Our widest gap is +7.4% in 6th of October; 41 rows (0.7%) were set aside with a reason.

Built with

  • Python
  • Airflow
  • PostgreSQL
  • Playwright
  • Docker
  • Power BI