toby-p/rightmove_webscraper.py

floorplan urls no longer working

Opened this issue · 1 comments

T00fy commented

Looks like the xpath changed:

xp_floorplan_url = """//*[@id="floorplanTabs"]/div[2]/div[2]/img/@src"""

id floorplanTabs is no longer available on the main page. On inspecting the elements there appears to be an attempt at obfuscation.

This should be able to be fixed by replacing with:
xp_floorplan_url = """//*[contains(@alt, 'Floorplan')]/@src"""

Apologies for the delay! I tried running this version and the old version on a test url and neither returned any floorplan URLs. Are you able to provide a sample URL for testing which demonstrates the new version downloading anything?