Skip to content

PyPi docs out of date #77

@filip-michalsky

Description

@filip-michalsky

https://pypi.org/project/browserbase/

looking at the start of the README:

`import os
from playwright.sync_api import Playwright, sync_playwright
from browserbase import Browserbase

BROWSERBASE_API_KEY = os.environ.get("BROWSERBASE_API_KEY")
BROWSERBASE_PROJECT_ID = os.environ.get("BROWSERBASE_PROJECT_ID")

bb = Browserbase(
# This is the default and can be omitted
api_key=BROWSERBASE_API_KEY,
)

session = client.sessions.create(
project_id=BROWSERBASE_PROJECT_ID,
)
print(session.id)`

does not work since i think the newer version of the python SDK for browserbase does not pass the env vars explicitly. Also, the part of readm above is defining bb as the client but then using variable client to create a session which I think is a typo?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions