mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-27 14:25:20 +02:00
fix web scrape init
This commit is contained in:
parent
891e35b92f
commit
c6ac7ef8b8
1 changed files with 1 additions and 1 deletions
|
|
@ -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()}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue