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
small docs tweaks
Nick Sweeting101df3fc5252
diff --git a/docs/customize/real-browser.mdx b/docs/customize/real-browser.mdxindex bc5a9db9b..2185508f7 100644--- a/docs/customize/real-browser.mdx+++ b/docs/customize/real-browser.mdx@@ -285,7 +285,7 @@ agent2 = Agent()await asyncio.gather(agent1.run(), agent2.run()) # run in parallel-await reused_session.close()+await shared_browser.close()```### Parallel Agents, Same Browser, Same Tab@@ -345,6 +345,7 @@ shared_profile = BrowserProfile(headless=True,user_data_dir=None, # use dedicated tmp user_data_dir per sessionstorage_state='/tmp/auth.json', # load/save cookies to/from json file+ keep_alive=True, # don't close the browser after the agent finishes)window1 = BrowserSession(browser_profile=profile_a)@@ -356,6 +357,11 @@ agent2 = Agent(browser_session=window2)await asyncio.gather(agent1.run(), agent2.run()) # run in parallelawait window1.save_cookies() # write cookie updates to auth.jsonawait window2.save_cookies() # you must decide when to save manually++# can also reload the cookies from the file into the active session if they change+await window1.load_cookies_from_file()+await window1.close()+await window2.close()```---