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
Format
kalil0321dcb3f8e2c6dd
diff --git a/browser_use/code_use/notebook_export.py b/browser_use/code_use/notebook_export.pyindex cb827af53..b3defaed0 100644--- a/browser_use/code_use/notebook_export.py+++ b/browser_use/code_use/notebook_export.py@@ -81,14 +81,12 @@ print("Available functions: navigate, click, input, evaluate, search, extract, d# Add JavaScript code blocks as variables FIRSTif hasattr(agent, 'namespace') and agent.namespace:-# Look for JavaScript variables in the namespacecode_block_vars = agent.namespace.get('_code_block_vars', set())for var_name in sorted(code_block_vars):var_value = agent.namespace.get(var_name)if isinstance(var_value, str) and var_value.strip():-# Check if this looks like JavaScript code# Look for common JS patternsjs_patterns = [@@ -111,7 +109,6 @@ print("Available functions: navigate, click, input, evaluate, search, extract, dis_js = any(re.search(pattern, var_value, re.IGNORECASE) for pattern in js_patterns)if is_js:-# Create a code cell with the JavaScript variablejs_cell = {'cell_type': 'code',