Skip to content

Commit 823efec

Browse files
author
Stainless Bot
committed
feat: revert quickstart
1 parent 7a134b9 commit 823efec

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

Diff for: examples/playwright_basic.py

+3-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
1-
import os
2-
31
from playwright.sync_api import Playwright, sync_playwright
42

5-
from browserbase import Browserbase
6-
7-
BROWSERBASE_API_KEY = os.environ.get("BROWSERBASE_API_KEY", "")
8-
if not BROWSERBASE_API_KEY:
9-
raise ValueError("BROWSERBASE_API_KEY is not set")
10-
BROWSERBASE_PROJECT_ID = os.environ.get("BROWSERBASE_PROJECT_ID", "")
11-
if not BROWSERBASE_PROJECT_ID:
12-
raise ValueError("BROWSERBASE_PROJECT_ID is not set")
13-
14-
bb = Browserbase(
15-
# This is the default and can be omitted
16-
api_key=BROWSERBASE_API_KEY,
3+
from examples import (
4+
BROWSERBASE_PROJECT_ID,
5+
bb,
176
)
187

198

0 commit comments

Comments
 (0)