Skip to content

Commit

Permalink
Improved reCAPTCHA v3 examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Xewdy444 committed Aug 24, 2024
1 parent b386408 commit c7be5d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/recaptchav3/async_solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ async def main() -> None:
async with async_playwright() as playwright:
browser = await playwright.firefox.launch()
page = await browser.new_page()
await page.goto("https://antcpt.com/score_detector/")

async with recaptchav3.AsyncSolver(page) as solver:
await page.goto("https://antcpt.com/score_detector/")
token = await solver.solve_recaptcha()
print(token)

Expand Down
2 changes: 1 addition & 1 deletion examples/recaptchav3/sync_solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ def main() -> None:
with sync_playwright() as playwright:
browser = playwright.firefox.launch()
page = browser.new_page()
page.goto("https://antcpt.com/score_detector/")

with recaptchav3.SyncSolver(page) as solver:
page.goto("https://antcpt.com/score_detector/")
token = solver.solve_recaptcha()
print(token)

Expand Down

0 comments on commit c7be5d9

Please sign in to comment.