Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
fix markdownify in iframes not having arg bound
Nick Sweeting56de6cf75cc3
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.pyindex f918399a1..902f1dbb9 100644--- a/browser_use/controller/service.py+++ b/browser_use/controller/service.py@@ -257,7 +257,7 @@ class Controller(Generic[Context]):content += f'\n\nIFRAME {iframe.url}:\n'# Run markdownify in a thread pool for iframe content as welliframe_html = await iframe.content()- iframe_markdown = await loop.run_in_executor(None, markdownify.markdownify, iframe_html)+ iframe_markdown = await loop.run_in_executor(None, markdownify_func, iframe_html)content += iframe_markdownprompt = 'Your task is to extract the content of the page. You will be given a page and a goal and you should extract all relevant information around this goal from the page. If the goal is vague, summarize the page. Respond in json format. Extraction goal: {goal}, Page: {page}'