From c6ac7ef8b8a076706acdd172cb88ae9923593874 Mon Sep 17 00:00:00 2001 From: yzlin Date: Fri, 2 Feb 2024 20:52:56 +0800 Subject: [PATCH] fix web scrape init --- metagpt/tools/libs/web_scraping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/tools/libs/web_scraping.py b/metagpt/tools/libs/web_scraping.py index b6db62d67..f983c1215 100644 --- a/metagpt/tools/libs/web_scraping.py +++ b/metagpt/tools/libs/web_scraping.py @@ -16,7 +16,7 @@ async def scrape_web_playwright(url, *urls): (dict): The inner text content and html structure of the web page, key are : 'inner_text', 'html'. """ # Create a PlaywrightWrapper instance for the Chromium browser - web = await PlaywrightWrapper("chromium").run(url, *urls) + web = await PlaywrightWrapper().run(url, *urls) # Return the inner text content of the web page return {"inner_text": web.inner_text.strip(), "html": web.html.strip()}