Proxy¶
Proxy providers for network request routing.
ProxyProvider (ABC)¶
Abstract base class for proxy providers.
All proxy provider implementations must inherit from ProxyProvider
and implement get_proxy() to return a Playwright-compatible
Proxy instance.
Proxy is applied at the browser-context level in managed browser mode only. It is not used in local browser mode — your Chrome instance manages its own network configuration.
All pages within a single AsyncScraper instance share the same
proxy. For different proxies, create separate AsyncScraper
instances.
- Supported providers:
BrightDataProxy: Bright Data residential/datacenter proxies.Custom: Extend this class and implement
get_proxy().
Example:
class MyProxyProvider(ProxyProvider):
def get_proxy(self) -> Proxy:
return Proxy(
server="http://my-proxy.com:8080",
username="user",
password="pass",
)
- class intelliscraper.proxy.base.ProxyProvider[source]¶
Bases:
ABCAbstract base class for proxy providers.
Implement
get_proxy()to return aProxyinstance that Playwright can use for network requests.Note
Proxy is only used in managed browser mode. In local browser mode (CDP), the user’s Chrome instance manages its own network settings — the proxy parameter is ignored.
BrightDataProxy¶
- class intelliscraper.proxy.brightdata.BrightDataProxy(host, port, username, password)[source]¶
Bases:
ProxyProviderBright Data proxy provider for residential and data center proxies.