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

Function request_chrome_android

python/examples/impersonate.py:42–58  ·  view source on GitHub ↗

Test request using Chrome on Android impersonation Demonstrates advanced impersonation with OS specification Args: client: Existing client instance to update

(client: Client)

Source from the content-addressed store, hash-verified

40
41
42async def request_chrome_android(client: Client):
43 """Test request using Chrome on Android impersonation
44
45 Demonstrates advanced impersonation with OS specification
46
47 Args:
48 client: Existing client instance to update
49 """
50 print("\n[Testing Chrome on Android Impersonation]")
51 client.update(
52 impersonate=ImpersonateOption(
53 impersonate=Impersonate.Chrome134,
54 impersonate_os=ImpersonateOS.Android,
55 )
56 )
57 resp = await client.get("https://tls.peet.ws/api/all")
58 await print_response_info(resp)
59
60
61async def main():

Callers 1

mainFunction · 0.85

Calls 4

ImpersonateOptionClass · 0.85
print_response_infoFunction · 0.85
updateMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected