You can create a session with the create_session method in the SDK:

create-session.py
from simplex import Simplex

simplex = Simplex(api_key="your_api_key")
livestream_url = simplex.create_session()
print("Livestream URL: ", livestream_url)

# Navigate to Google
simplex.goto("google.com")
# add a 30 second wait to keep the session open while viewing it
simplex.wait(30000) 

Once you run create-session.py, you’ll get a livestream URL that you can use to view the session.

Executing create-session.py.

Sessions close automatically on program exit when using the SDK.

You can now interact with the session using Simplex’s Actions and Extractors.