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: fixing open file encoding error in windows
mingzhong.lidbae5896231a
diff --git a/browser_use/agent/prompts.py b/browser_use/agent/prompts.pyindex 868e3eb1f..9f78f63b1 100644--- a/browser_use/agent/prompts.py+++ b/browser_use/agent/prompts.py@@ -36,7 +36,7 @@ class SystemPrompt:"""Load the prompt template from the markdown file."""try:# This works both in development and when installed as a package- with importlib.resources.files('browser_use.agent').joinpath('system_prompt.md').open('r') as f:+ with importlib.resources.files('browser_use.agent').joinpath('system_prompt.md').open('r', encoding='utf-8') as f:self.prompt_template = f.read()except Exception as e:raise RuntimeError(f'Failed to load system prompt template: {e}')