FlorianREGAZ / Python-Tls-Client

Advanced HTTP Library
MIT License
660 stars 136 forks source link

Please add request timeout 30 secs only as Defult!! #108

Open ramez121 opened 7 months ago

ramez121 commented 7 months ago

Please add request timeout like requests lib

sunny755 commented 2 months ago

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)