From d08b335351e9f93bee03783bc973a861c0f05d89 Mon Sep 17 00:00:00 2001 From: Philipp K Date: Thu, 15 Dec 2022 17:28:48 +0100 Subject: [PATCH] FIX crash during ad overview page scan --- kleinanzeigen_bot/extract.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kleinanzeigen_bot/extract.py b/kleinanzeigen_bot/extract.py index c49df71..8ccbe5e 100644 --- a/kleinanzeigen_bot/extract.py +++ b/kleinanzeigen_bot/extract.py @@ -194,7 +194,8 @@ class AdExtractor(SeleniumMixin): # collect ad references: - pagination_section = self.webdriver.find_element(By.CSS_SELECTOR, 'section.jsx-1105488430:nth-child(4)') + pagination_section = self.webdriver.find_element(By.CSS_SELECTOR, '.l-splitpage')\ + .find_element(By.XPATH, './/section[4]') # scroll down to load dynamically self.web_scroll_page_down() pause(2000, 3000)