xewdy444/playwright-recaptcha ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python library that helps people solve reCAPTCHA in Playwright driven browser flows.
I want it to work with both v2 and v3, and it should be easy to use in either sync or async Playwright code. For v2, handle the audio challenge by sending the audio through speech to text, and if an API key is provided, support the image challenge through CapSolver too. For v3, wait for the browser to make the needed request and return the g-recaptcha-response token.
Please include simple examples showing how someone would use it on a demo reCAPTCHA page, and make sure it has clean helper classes or functions so the token is easy to get and use in a form submission. Also add basic tests and keep the package installable with pip. If you need to check the latest Playwright or service docs while building it, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using coderabbit