MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / request_firefox

Function request_firefox

python/examples/impersonate.py:26–39  ·  view source on GitHub ↗

Test request using Firefox browser impersonation Demonstrates basic browser impersonation with custom header order

()

Source from the content-addressed store, hash-verified

24
25
26async def request_firefox():
27 """Test request using Firefox browser impersonation
28
29 Demonstrates basic browser impersonation with custom header order
30 """
31 print("\n[Testing Firefox Impersonation]")
32 client = Client(
33 impersonate=Impersonate.Firefox135,
34 headers_order=["accept-encoding", "user-agent", "accept"],
35 tls_info=True,
36 )
37 resp = await client.get("https://tls.peet.ws/api/all")
38 await print_response_info(resp)
39 return client
40
41
42async def request_chrome_android(client: Client):

Callers 1

mainFunction · 0.85

Calls 3

getMethod · 0.95
ClientClass · 0.85
print_response_infoFunction · 0.85

Tested by

no test coverage detected