File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -396,6 +396,36 @@ browser = SentienceBrowser(headless=True)
396396browser = SentienceBrowser() # headless=True if CI=true, else False
397397```
398398
399+ ### Residential Proxy Support
400+
401+ Use residential proxies to route traffic and protect your IP address. Supports HTTP, HTTPS, and SOCKS5 with automatic SSL certificate handling:
402+
403+ ``` python
404+ # Method 1: Direct configuration
405+ browser = SentienceBrowser(proxy = " http://user:pass@proxy.example.com:8080" )
406+
407+ # Method 2: Environment variable
408+ # export SENTIENCE_PROXY="http://user:pass@proxy.example.com:8080"
409+ browser = SentienceBrowser()
410+
411+ # Works with agents
412+ llm = OpenAIProvider(api_key = " your-key" , model = " gpt-4o" )
413+ agent = SentienceAgent(browser, llm)
414+
415+ with browser:
416+ browser.page.goto(" https://example.com" )
417+ agent.act(" Search for products" )
418+ # All traffic routed through proxy with WebRTC leak protection
419+ ```
420+
421+ ** Features:**
422+ - HTTP, HTTPS, SOCKS5 proxy support
423+ - Username/password authentication
424+ - Automatic self-signed SSL certificate handling
425+ - WebRTC IP leak protection (automatic)
426+
427+ See ` examples/residential_proxy_agent.py ` for complete examples.
428+
399429## Best Practices
400430
401431### 1. Wait for Dynamic Content
You can’t perform that action at this time.
0 commit comments