mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
fix: No HTML element found with ID 'my-manageads-adlist' (#284)
This commit is contained in:
@@ -157,7 +157,7 @@ class AdExtractor(WebScrapingMixin):
|
||||
while True: # loop reference extraction until no more forward page
|
||||
# extract references
|
||||
list_items = await self.web_find_all(By.CLASS_NAME, 'cardbox',
|
||||
parent = await self.web_find(By.ID, 'my-manageads-adlist'))
|
||||
parent = await self.web_find(By.ID, 'my-manageitems-adlist'))
|
||||
refs += [
|
||||
(await self.web_find(By.CSS_SELECTOR, 'article > section > section:nth-of-type(2) > h2 > div > a', parent = li)).attrs['href']
|
||||
for li in list_items
|
||||
|
||||
Reference in New Issue
Block a user