From bf45f7c069cf6b9e87d74e8c029096976fc25838 Mon Sep 17 00:00:00 2001 From: Jesse Myrberg Date: Sun, 26 Feb 2023 17:27:35 +0200 Subject: [PATCH] Update listings xpath --- finscraper/scrapy_spiders/oikotieapartment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/finscraper/scrapy_spiders/oikotieapartment.py b/finscraper/scrapy_spiders/oikotieapartment.py index a477c4d..86fbe7a 100644 --- a/finscraper/scrapy_spiders/oikotieapartment.py +++ b/finscraper/scrapy_spiders/oikotieapartment.py @@ -213,7 +213,7 @@ def _handle_pagination_page(self, request, spider, driver): driver.get(request.url) logger.debug('Scrolling pagination page to bottom...') - listings_xpath = '//div[contains(@class, "ot-card-v2__wrapper")]' + listings_xpath = '//div[contains(@class, "cards-v2__card")]' driver.execute_script("window.scrollTo(0,document.body.scrollHeight)") logger.debug('Waiting for listings to be available...')