fix(crawler): simplify page retrieval logic in AsyncPlaywrightCrawlerStrategy
This commit is contained in:
@@ -505,10 +505,7 @@ class AsyncPlaywrightCrawlerStrategy(AsyncCrawlerStrategy):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Get page for session
|
# Get page for session
|
||||||
try:
|
page, context = await self.browser_manager.get_page(crawlerRunConfig=config)
|
||||||
page, context, _ = await self.browser_manager.get_page(crawlerRunConfig=config)
|
|
||||||
except Exception as e:
|
|
||||||
page, context = await self.browser_manager.get_page(crawlerRunConfig=config)
|
|
||||||
|
|
||||||
# await page.goto(URL)
|
# await page.goto(URL)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user