Aioweb migration #1
@@ -15,12 +15,15 @@ from aioweb_tls import CurlCffi, TLSSession
|
||||
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.
|
||||
|
||||
Fingerprint rotation lives here so every monitor rotates the same way; the
|
||||
caller owns the session lifetime via ``async with``.
|
||||
|
||||
Args:
|
||||
proxies: used for rotating proxies inside of send_request
|
||||
|
||||
Returns:
|
||||
A TLSSession over a curl_cffi backend with a random impersonation.
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user