Mimic browser fingerprints with Session
mainYou can use the browser parameter in httpmorph.Session to mimic specific browser profiles. This includes User-Agent, TLS cipher suites, HTTP/2 settings, and JA3/JA4 fingerprint matching.
Supported browser values:
'chrome': Defaults to Chrome 143 profile.'chrome[version]': Specific Chrome version (127-143 supported, e.g.,'chrome127').'random': Selects a random browser profile.
Use the os parameter to simulate different operating systems, which affects the User-Agent string:
'macos'(default)'windows''linux'
import httpmorph
# Mimic Chrome on Windows
session = httpmorph.Session(browser='chrome', os='windows')
# Use a specific Chrome version
session = httpmorph.Session(browser='chrome143')
# Random browser selection
session = httpmorph.Session(browser='random')