Skip to content

Commit 0c4dfc4

Browse files
committed
fix README
1 parent 35b86bc commit 0c4dfc4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ The BrowserUse Python library provides convenient access to the BrowserUse APIs
2727
1. 🦄 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
4848
Browser 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+
5155
class HackerNewsPost(BaseModel):
5256
title: str
5357
url: str

0 commit comments

Comments
 (0)