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")
# By default, we print the livestream URL to the console.
# Set create_session(show_in_console=False) to hide it.
livestream_url = simplex.create_session() 

# 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.