MCPcopy Create free account
hub / github.com/Vinyzu/recognizer / bytedance

Function bytedance

examples/demo_patchright.py:10–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10async 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
28if __name__ == "__main__":

Callers 1

demo_patchright.pyFile · 0.70

Calls 2

solve_recaptchaMethod · 0.95
AsyncChallengerClass · 0.90

Tested by

no test coverage detected