File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ The BrowserUse Python library provides convenient access to the BrowserUse APIs
27271 . 🦄 Automate the Internet!
2828
2929 ``` python
30- from browser_use_sdk import BrowserUseClient
30+ from browser_use_sdk import BrowserUse
3131
32- client = BrowserUseClient (api_key = " bu_..." )
32+ client = BrowserUse (api_key = " bu_..." )
3333
3434 task = client.tasks.create_task(
35- task = " Search for the top 10 Hacker News posts and return the title and url."
36- llm = " gpt-4.1" ,
35+ task = " Search for the top 10 Hacker News posts and return the title and url." ,
36+ llm = " gpt-4.1"
3737 )
3838
3939 result = task.complete()
@@ -48,6 +48,10 @@ The BrowserUse Python library provides convenient access to the BrowserUse APIs
4848Browser Use Python SDK provides first class support for Pydantic models.
4949
5050``` py
51+ from browser_use_sdk import AsyncBrowserUse
52+
53+ client = AsyncBrowserUse(api_key = API_KEY )
54+
5155class HackerNewsPost (BaseModel ):
5256 title: str
5357 url: str
You can’t perform that action at this time.
0 commit comments