Closed Lyfhael closed 11 months ago
I'm blind, this fixed it : https://github.com/Xewdy444/Playwright-reCAPTCHA/issues/37
Here's the best way I found to fill out the form and retrieve the JSON data:
import json
from playwright.sync_api import sync_playwright
from playwright_recaptcha import recaptchav2
with sync_playwright() as playwright:
browser = playwright.firefox.launch(headless=False)
page = browser.new_page()
page.goto("https://www.whoxy.com/reverse-whois/demo.php")
page.locator('select[name="search_identifier"]').select_option(
label="Email Address ="
)
page.locator('select[name="result_mode"]').select_option(
label="Default [100 results, Full Contact Details]"
)
page.locator("#search_keyword").fill("xewdy@xewdy.tech")
page.get_by_role("button", name="Reverse Whois Lookup").click()
page.wait_for_load_state("networkidle")
with recaptchav2.SyncSolver(page) as solver:
if solver.recaptcha_is_visible():
solver.solve_recaptcha()
text = page.locator("pre").inner_text()
json_data = json.loads(text)
I hadn't used your method, kept having issues with my code that would pop randomly. Finally remembered you wrote this and tried it and it works so well, thank you again so much <3
Hey, I'm trying to bypass the reCAPTCHA of this web page but I feel like I'm not using your library properly and it says no unchecked reCAPTCHA boxes were found. In the source code it says data-version="v2_invisible" for the captcha element, maybe it's because it's invisible that the library can't find it ?
But I saw your comment here : https://github.com/Xewdy444/Playwright-reCAPTCHA/issues/6#issuecomment-1407013307 and in my script I do click the button before trying to solve the captcha