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

No History

Open SlotthCode opened this issue 2 years ago • 3 comments
trafficstars

Can you add the response.history like requests has

SlotthCode avatar Dec 17 '22 02:12 SlotthCode

I'll look into it. Thank you very much for the suggestion :)

FlorianREGAZ avatar Jan 05 '23 18:01 FlorianREGAZ

Hey, yes the client can do redirects for you. Just turn the allow_redirects option to True in your request. Example:

session = tls_client.Session(
    client_identifier="chrome_108",
    random_tls_extension_order=True,
)

res = session.get(
    "https://nike.de",
    allow_redirects=True
)
print(res.url)

FlorianREGAZ avatar Mar 17 '23 19:03 FlorianREGAZ