Users can use Simplex with their own login credentials. This is useful when accessing websites that require authentication like internal tooling, real estate listings, or accounts receivable/payable software.

Creating And Storing Login Data

We never store your login data on our servers. The data gets deleted as soon as you close your session.

Once you install the Python SDK, you can run our CLI command to create and open a login session for a given website.

simplex login {website_url}

You must set your SIMPLEX_API_KEY environment variable before running the command.

export SIMPLEX_API_KEY=your_api_key

Creating the login session.

After you log in, you can click the button on the page to capture the login session. This will download a JSON containing your session data.

Downloading the login session JSON.

Using Login Data

After you download the login session JSON, you can use the create_session method to restore the login session on session creation.

Let’s say we’ve downloaded the login session JSON for Zillow and saved it in sessions/zillow_login_session.json.

login.py
from simplex import Simplex

simplex = Simplex(api_key="your_api_key")
simplex.create_session(session_data="sessions/zillow_login_session.json")
simplex.goto("https://www.zillow.com")

You can alternatively pass the login session JSON to the create_session method as a string.

login.py
from simplex import Simplex

simplex = Simplex(api_key="your_api_key") 
session_data_str = open("sessions/zillow_login_session.json").read()
simplex.create_session(session_data=session_data_str)
simplex.goto("https://www.zillow.com")

Using the login session JSON to restore the session.