Closed YonQua closed 1 year ago
Works for all browsers.
from playright.sync_api import sync_playwright from playwright_recaptcha import recaptchav2
with sync_playwright() as playwright: browser = playwright.firefox.launch() page = browser.new_page() page.goto("https://www.google.com/recaptcha/api2/demo")
with recaptchav2.SyncSolver(page) as solver:
token = solver.solve_recaptcha(wait=True)
print(token)
I tested with your example, I just changed the default firefox to webkit and chromium, and they didn’t work. I also used await self.page.pause() to follow up, and it kept looping until it timed out.
Can you please explain what you mean when you say they didn't work.
English is the only supported language currently.
Is this library firefox browser only, and not compatible with webkit and chromium browsers? I tried both of them and they failed to work.