Python-Tls-Client icon indicating copy to clipboard operation
Python-Tls-Client copied to clipboard

Please add request timeout 30 secs only as Defult!!

Open Leo-Samurai opened this issue 1 year ago • 2 comments
trafficstars

Please add request timeout like requests lib

Leo-Samurai avatar Feb 11 '24 08:02 Leo-Samurai

You can set the desired timeout using the keyword timeout_seconds.

import tls_client
session = tls_client.Session(
    client_identifier="chrome112",
    random_tls_extension_order=True
)
response = session.get("https://github.com", timeout_seconds=180)

sunny755 avatar Jul 06 '24 18:07 sunny755