From ea8389ef405064654f023f9ad04ae26c1d1e6380 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sun, 15 Mar 2026 20:15:40 +0000 Subject: [PATCH] Fix openrent scraping --- finder/openrent.py | 397 ++++++++++++++++++++++++++++++++------------- 1 file changed, 285 insertions(+), 112 deletions(-) diff --git a/finder/openrent.py b/finder/openrent.py index 82667c5..d66d0f6 100644 --- a/finder/openrent.py +++ b/finder/openrent.py @@ -6,11 +6,20 @@ impersonation to make requests with those cookies. OpenRent is a rental-only platform, so this scraper only handles RENT channel. -HTML parsing notes: - OpenRent server-renders property cards in the search results page. - Property cards use class "pli" (property list item). Each card contains - a link to the property detail page, price, bedrooms, and address info. - The CSS selectors below may need updating if OpenRent changes their markup. +HTML structure (as of 2026-03): + Search results page renders property cards as . + Each card contains: + - Monthly price in
with £X,XXX + - Weekly price in
(hidden by Alpine.js) + - Title in
N Bed Type, Location, OUTCODE
+ - Features in