Skip to main content
Version: Next

IProxyConfiguration

Minimal contract that any object passed to a crawler as its proxyConfiguration option must satisfy.

Implement this interface to plug a custom proxy-provisioning strategy into any Crawlee crawler — for example a remote proxy service or a thin wrapper around the built-in ProxyConfiguration with different rotation rules. *

Implemented by

Index

Methods

newProxyInfo

  • newProxyInfo(options): Promise<undefined | ProxyInfo>
  • Creates a new ProxyInfo object describing the proxy to use for the given request. Returns undefined when no proxy should be used.


    Parameters

    • optionaloptions: NewUrlOptions

    Returns Promise<undefined | ProxyInfo>

Page Options