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
Dont remove styles
Magnus Müllerdb8601d88a29
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.pyindex 230241ad0..cc28e2d5d 100644--- a/browser_use/controller/service.py+++ b/browser_use/controller/service.py@@ -364,9 +364,9 @@ class Controller(Generic[Context]):import markdownifyif extract_links:- content = markdownify.markdownify(page_html, heading_style='ATX', bullets='-', strip=['style', 'script'])+ content = markdownify.markdownify(page_html, heading_style='ATX', bullets='-')else:- content = markdownify.markdownify(page_html, heading_style='ATX', bullets='-', strip=['a', 'style', 'script'])+ content = markdownify.markdownify(page_html, heading_style='ATX', bullets='-', strip=['a'])# Remove weird positioning artifactsimport re