File tree Expand file tree Collapse file tree 1 file changed +27
-14
lines changed Expand file tree Collapse file tree 1 file changed +27
-14
lines changed Original file line number Diff line number Diff line change 7
7
8
8
The BrowserUse TypeScript library provides convenient access to the BrowserUse APIs from TypeScript.
9
9
10
- ## Two -Step QuickStart
10
+ ## Three -Step QuickStart
11
11
12
- 1 . ☝️ Get your API Key at [ Browser Use Cloud ] ( https://cloud.browser-use.com ) .. .
12
+ 1 . 📦 Install BrowserUse SDK .
13
13
14
- 1 . ✌️ Automate the web!
14
+ ``` sh
15
+ # NPM
16
+ npm i -s browser-use-sdk
15
17
16
- ``` ts
17
- import { BrowserUseClient } from " browser-use-sdk" ;
18
+ # Yarn
19
+ yarn add browser-use-sdk
18
20
19
- const client = new BrowserUseClient ({
20
- apiKey: " bu_... " ,
21
- });
21
+ # PNPM
22
+ pnpm add browser-use-sdk
23
+ ```
22
24
23
- const task = await client .tasks .createTask ({
24
- task: " Search for the top 10 Hacker News posts and return the title and url." ,
25
- });
25
+ 1. 🔑 Get your API Key at [Browser Use Cloud](https://cloud.browser-use.com)!
26
26
27
- const result = await task . complete ();
27
+ 1. 🦄 Automate the Internet !
28
28
29
- console .log (result .output );
30
- ```
29
+ ` ` ` ts
30
+ import { BrowserUseClient } from " browser-use-sdk" ;
31
+
32
+ const client = new BrowserUseClient({
33
+ apiKey: " bu_..." ,
34
+ });
35
+
36
+ const task = await client.tasks.createTask({
37
+ task: " Search for the top 10 Hacker News posts and return the title and url." ,
38
+ });
39
+
40
+ const result = await task.complete ();
41
+
42
+ console.log(result.output);
43
+ ` ` `
31
44
32
45
> The full API of this library can be found in [api.md](api.md).
33
46
You can’t perform that action at this time.
0 commit comments