Installation
Install the SDK using pip:Quick Start
API Reference
Grasp(**options)
Initializes the Grasp client.
dict
grasp.create(**options)
Create a new container.
dict
GraspContainer
Example:
grasp.connect(container_id)
Connect to an existing container. This will wake up the container if it’s sleeping.
str
required
The ID of the container to connect to.
GraspContainer
Example:
GraspContainer
The container object returned by grasp.create() and grasp.connect().
Properties:
str
Unique container identifier.
str
Container status.
str
ISO timestamp of creation.
BrowserSession
Browser session details.
container.shutdown()
Stop and clean up the container.
Returns: None
Example:
BrowserSession
Browser session details associated with a container.
Properties:
str
Chrome DevTools Protocol WebSocket endpoint.
str
URL to view the live browser session.
Environment Variables
GRASP_API_KEY- Default API key (recommended).