mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 18:41: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
|
while True: # loop reference extraction until no more forward page
|
||||||
# extract references
|
# extract references
|
||||||
list_items = await self.web_find_all(By.CLASS_NAME, 'cardbox',
|
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 += [
|
refs += [
|
||||||
(await self.web_find(By.CSS_SELECTOR, 'article > section > section:nth-of-type(2) > h2 > div > a', parent = li)).attrs['href']
|
(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
|
for li in list_items
|
||||||
|
|||||||
Reference in New Issue
Block a user