Skip to content

Commit

Permalink
Update listings xpath (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmyrberg committed Feb 26, 2023
1 parent 4ae1080 commit 26e5e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion finscraper/scrapy_spiders/oikotieapartment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...')
Expand Down

0 comments on commit 26e5e59

Please sign in to comment.