File size: 339 Bytes
77169b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""运行时键类型:代理组唯一标识。"""

from typing import NamedTuple

from core.constants import TIMEZONE


class ProxyKey(NamedTuple):
    """唯一标识一个代理组(一个浏览器进程)。"""

    proxy_host: str
    proxy_user: str
    fingerprint_id: str
    use_proxy: bool = True
    timezone: str = TIMEZONE