from notte_sdk import NotteClientclient = NotteClient()with client.Session( solve_captchas=True, headless=False # Watch it solve captchas) as session: page = session.page # Navigate to a site with captcha page.goto("https://example.com/login") # Fill login form page.fill('input[name="email"]', "user@example.com") page.fill('input[name="password"]', "password") # Click submit - captcha will be solved automatically page.click('button[type="submit"]') # Wait for successful login page.wait_for_url("**/dashboard") print("Logged in successfully!")
Combine captcha solving with proxies for better success rates:
from notte_sdk import NotteClientclient = NotteClient()with client.Session( solve_captchas=True, proxies=True # Use residential proxies) as session: page = session.page page.goto("https://example.com") # Both captcha solving and proxies active
Add human-like delays before and after captcha-protected actions:
realistic_delays.py
import timefrom notte_sdk import NotteClientclient = NotteClient()with client.Session(solve_captchas=True) as session: page = session.page # Navigate to page page.goto("https://example.com/protected") # Wait for page to load time.sleep(2) # Fill form page.fill('input[name="email"]', "user@example.com") time.sleep(1) # Submit (captcha will be solved) page.click('button[type="submit"]')
from notte_sdk import NotteClientclient = NotteClient()with client.Session( solve_captchas=True, headless=False, # Opens live viewer) as session: # You can watch captchas being solved pass
from notte_sdk import NotteClientclient = NotteClient()# Ensure all requirements are metwith client.Session( solve_captchas=True, # Must be enabled proxies=True, # Helps with detection) as session: pass