fix: No HTML element found with ID 'my-manageads-adlist' (#284)

This commit is contained in:
SphaeroX
2024-03-28 19:45:42 +01:00
committed by GitHub
parent 46b901d0cc
commit 5c8e00df52

View File

@@ -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