mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
add strip for result.
This commit is contained in:
parent
d60a4c1cdb
commit
ff5e7deb21
1 changed files with 1 additions and 1 deletions
|
|
@ -19,4 +19,4 @@ async def scrape_web_playwright(url, *urls):
|
|||
web = await PlaywrightWrapper("chromium").run(url, *urls)
|
||||
|
||||
# Return the inner text content of the web page
|
||||
return {"inner_text": web.inner_text, "html": web.html}
|
||||
return {"inner_text": web.inner_text.strip(), "html": web.html.strip()}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue