Skip to content

Commit 907d3c9

Browse files
authored
Merge pull request #64 from SentienceAPI/residential_proxy
residential proxy verified; bump version to 0.90.0
2 parents 28486e3 + edea0a1 commit 907d3c9

File tree

8 files changed

+836
-10
lines changed

8 files changed

+836
-10
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,36 @@ browser = SentienceBrowser(headless=True)
396396
browser = 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

0 commit comments

Comments
 (0)