fixes #475 CSS selector 'button' not found

Element button was changed to em.
This commit is contained in:
Heavenfighter
2025-04-18 12:55:43 +02:00
committed by Sebastian Thomschke
parent 27c7bb56ca
commit 20f3f87864

View File

@@ -153,7 +153,7 @@ class AdExtractor(WebScrapingMixin):
LOG.warning('There are currently no ads on your profile!')
return []
n_buttons = len(await self.web_find_all(By.CSS_SELECTOR, 'button',
n_buttons = len(await self.web_find_all(By.CSS_SELECTOR, 'em',
parent = await self.web_find(By.CSS_SELECTOR, 'div:nth-of-type(1)', parent = pagination)))
if n_buttons > 1:
multi_page = True