mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-11 17:29:14 +02:00
Merge pull request #133 from R0m1k3/antigravity
feat: add Bonial.fr catalog scraper service using Playwright.
This commit is contained in:
1 file changed
+1
-1
@@ -201,7 +201,7 @@ async def scrape_catalog_list(page: Page, enseigne: Enseigne) -> list[dict[str,
|
||||
# Go up to find a section/div that contains both the link and the title/image
|
||||
parent = link
|
||||
for _ in range(5): # Try going up max 5 levels
|
||||
parent = await parent.evaluateHandle("el => el.parentElement")
|
||||
parent = await parent.evaluate_handle("el => el.parentElement")
|
||||
parent = parent.as_element()
|
||||
if not parent:
|
||||
break
|
||||
|
||||
Reference in new issue
Block a user