MCPcopy Create free account
hub / github.com/apify/crawlee-python / ProxyInfo

Class ProxyInfo

src/crawlee/proxy_configuration.py:26–52  ·  view source on GitHub ↗

Provides information about a proxy connection that is used for requests.

Source from the content-addressed store, hash-verified

24@dataclass
25@docs_group('Other')
26class ProxyInfo:
27 """Provides information about a proxy connection that is used for requests."""
28
29 url: str
30 """The URL of the proxy."""
31
32 scheme: str
33 """The scheme of the proxy."""
34
35 hostname: str
36 """The hostname of the proxy."""
37
38 port: int
39 """The proxy port."""
40
41 username: str = ''
42 """The username for the proxy."""
43
44 password: str = ''
45 """The password for the proxy."""
46
47 session_id: str | None = None
48 """The identifier of the used proxy session, if used.
49 Using the same session ID guarantees getting the same proxy URL."""
50
51 proxy_tier: int | None = None
52 """The tier of the proxy."""
53
54
55@docs_group('Configuration')

Callers 4

proxy_infoFunction · 0.90
test_proxy_set_localFunction · 0.90
new_proxy_infoMethod · 0.85

Calls

no outgoing calls

Tested by 3

proxy_infoFunction · 0.72
test_proxy_set_localFunction · 0.72