diff --git a/rightmove_webscraper/scraper.py b/rightmove_webscraper/scraper.py index 12acc0b..b6f2e5e 100644 --- a/rightmove_webscraper/scraper.py +++ b/rightmove_webscraper/scraper.py @@ -189,7 +189,7 @@ def _get_page(self, request_content: str, get_floorplans: bool = False): if status_code != 200: continue tree = html.fromstring(content) - xp_floorplan_url = """//*[@id="floorplanTabs"]/div[2]/div[2]/img/@src""" + xp_floorplan_url = """//*[contains(@alt, 'Floorplan')]/@src""" floorplan_url = tree.xpath(xp_floorplan_url) if floorplan_url: floorplan_urls.append(floorplan_url[0])