Test request using Chrome on Android impersonation Demonstrates advanced impersonation with OS specification Args: client: Existing client instance to update
(client: Client)
| 40 | |
| 41 | |
| 42 | async 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 | |
| 61 | async def main(): |
no test coverage detected