added proxies to default session
This commit is contained in:
1 parent
1441e7179c
commit
8e077515ff
1 file changed
+4
-1
@@ -15,12 +15,15 @@ from aioweb_tls import CurlCffi, TLSSession
|
|||||||
from monitor_utils.constants import CLIENT_IDENTIFIERS, RETRY_LIMIT
|
from monitor_utils.constants import CLIENT_IDENTIFIERS, RETRY_LIMIT
|
||||||
|
|
||||||
|
|
||||||
def get_default_session() -> TLSSession:
|
def get_default_session(proxies: AioProxies) -> TLSSession:
|
||||||
"""Return a TLSSession impersonating a random client fingerprint.
|
"""Return a TLSSession impersonating a random client fingerprint.
|
||||||
|
|
||||||
Fingerprint rotation lives here so every monitor rotates the same way; the
|
Fingerprint rotation lives here so every monitor rotates the same way; the
|
||||||
caller owns the session lifetime via ``async with``.
|
caller owns the session lifetime via ``async with``.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
proxies: used for rotating proxies inside of send_request
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
A TLSSession over a curl_cffi backend with a random impersonation.
|
A TLSSession over a curl_cffi backend with a random impersonation.
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in new issue
Block a user