()
| 8 | |
| 9 | |
| 10 | async def bytedance(): |
| 11 | # patchright install chromium |
| 12 | # patchright install-deps chromium |
| 13 | async with async_playwright() as p: |
| 14 | context = await p.chromium.launch_persistent_context( |
| 15 | user_data_dir="./user_data", |
| 16 | channel="chrome", |
| 17 | headless=False, |
| 18 | no_viewport=True, |
| 19 | locale="en-US", |
| 20 | ) |
| 21 | page = await context.new_page() |
| 22 | challenger = AsyncChallenger(page) |
| 23 | |
| 24 | await page.goto("https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox-explicit.php") |
| 25 | await challenger.solve_recaptcha() |
| 26 | |
| 27 | |
| 28 | if __name__ == "__main__": |
no test coverage detected