Skip to content

Commit 39c192d

Browse files
author
Sam Briggs
committed
[toby-p#46] Fix floorplan URL selector
Fix issue reported that finds floorplans now require a different selector
1 parent cdb79a2 commit 39c192d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rightmove_webscraper/scraper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def _get_page(self, request_content: str, get_floorplans: bool = False):
189189
if status_code != 200:
190190
continue
191191
tree = html.fromstring(content)
192-
xp_floorplan_url = """//*[@id="floorplanTabs"]/div[2]/div[2]/img/@src"""
192+
xp_floorplan_url = """//*[contains(@alt, 'Floorplan')]/@src"""
193193
floorplan_url = tree.xpath(xp_floorplan_url)
194194
if floorplan_url:
195195
floorplan_urls.append(floorplan_url[0])

0 commit comments

Comments
 (0)