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
27
27
1 . 🦄 Automate the Internet!
28
28
29
29
``` python
30
- from browser_use_sdk import BrowserUseClient
30
+ from browser_use_sdk import BrowserUse
31
31
32
- client = BrowserUseClient (api_key = " bu_..." )
32
+ client = BrowserUse (api_key = " bu_..." )
33
33
34
34
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"
37
37
)
38
38
39
39
result = task.complete()
@@ -48,6 +48,10 @@ The BrowserUse Python library provides convenient access to the BrowserUse APIs
48
48
Browser Use Python SDK provides first class support for Pydantic models.
49
49
50
50
``` py
51
+ from browser_use_sdk import AsyncBrowserUse
52
+
53
+ client = AsyncBrowserUse(api_key = API_KEY )
54
+
51
55
class HackerNewsPost (BaseModel ):
52
56
title: str
53
57
url: str
You can’t perform that action at this time.
0 commit comments