Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

fix web scrape init

yzlinc6ac7ef8b8a0
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()}