mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
fixes #475 CSS selector 'button' not found
Element button was changed to em.
This commit is contained in:
committed by
Sebastian Thomschke
parent
27c7bb56ca
commit
20f3f87864
@@ -153,7 +153,7 @@ class AdExtractor(WebScrapingMixin):
|
|||||||
LOG.warning('There are currently no ads on your profile!')
|
LOG.warning('There are currently no ads on your profile!')
|
||||||
return []
|
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)))
|
parent = await self.web_find(By.CSS_SELECTOR, 'div:nth-of-type(1)', parent = pagination)))
|
||||||
if n_buttons > 1:
|
if n_buttons > 1:
|
||||||
multi_page = True
|
multi_page = True
|
||||||
|
|||||||
Reference in New Issue
Block a user