fix: download all ads not working anymore #420 (#421)

renamed h2 to h3
This commit is contained in:
Heavenfighter
2025-02-11 19:33:32 +01:00
committed by GitHub
parent f3beb795b4
commit 820ae8966e

View File

@@ -168,7 +168,7 @@ class AdExtractor(WebScrapingMixin):
list_items = await self.web_find_all(By.CLASS_NAME, 'cardbox',
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']
(await self.web_find(By.CSS_SELECTOR, 'article > section > section:nth-of-type(2) > h3 > div > a', parent = li)).attrs['href']
for li in list_items
]