Read the Notte skill and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
Functions are serverless deployments of your browser automations that can be invoked via API, scheduled to run automatically, or triggered by events.
from notte_sdk import NotteClientclient = NotteClient()def run(url: str): with client.Session() as session: session.execute(type="goto", url=url) return session.scrape()
from notte_sdk import NotteClientclient = NotteClient()# Create a new function from our local Python filefunction = client.Function( path="my_scraping_function.py", name="My Scraping Function", description="A function for scraping the web")print(f"Function created with ID: {function.function_id}. You can reference it using `client.Function(<function_id>)`")# Run the function, providing variablesresponse = function.run(url="https://shop.notte.cc/")print(f"Function completed with result: {response.result}")# Update function with new version, from our local python filefunction.update(path="my_scraping_function.py")# List all functionsfunctions = client.functions.list()