For example, to solve the recaptcha v2 demo form at
https://www.google.com/recaptcha/api2/demo you can follow the 4 steps described below.
STEP #1
=======
We first need to find the site key, for this particular case it is 6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ- as we can see at page source code at line ...data-sitekey="6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"...
STEP #2
=======
Then with the target website url and sitekey we chose one DBC client lib.
In the sample we will use the python client lib.
Here you can download the lib
https://static.deathbycaptcha.com/files/dbc_api_v4_6_python3.zip
STEP #3
=======
Use the example called `new_recaptcha_token_image.py` and adjust sitekey and url.
Should looks similar to this:
Captcha_dict = {
'googlekey': '6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-',
'pageurl': '
https://www.google.com/recaptcha/api2/demo'
}
After 50 seconds more or less depending on service load you will receive the recaptcha v2 solution, a long string like this:
03AOLTBLThTFc6gBBU2SbxTMrt6v49jsGOqQrSvBTOObIC2aICDmDY31R6AXoeKQggMJ7bfKeiZJOyR4N5GVH8rFHJfGOf4A7B_FgHkHye6_ZDUUG5n3Q1SteJkFlvy4eTxNNUD4Eyzjwe2kVrQJr3K30Os0jXFtIs_htwMMX1ylLwcfsuXoHg0g8NoqERUUW0mG-RIlS6Vk8VYNG4EWKvaLFDzyDCeMb_qn1kYfB7WcIHYIUZU5BWdmzL7Uyu4DL_cojNL5HUQqH4vqoazVkUDE-ynVAZRyzyipmxkkj_CXsh1q_aMUxopoRvNDQyHy05EtYdF8NuOQdicZOix8lAiaWCssWcWW_dtQ
STEP #4
=======
Now with the solution we can post the form data, in this specific sample we only need to
HTTP post to
https://www.google.com/recaptcha/api2/demo
With request body g-recaptcha-response=<token-solution>
# Python sample
import requests
post_data = {"g-recaptcha-response": "<token-solution>"}
resp = requests.post("
https://www.google.com/recaptcha/api2/demo", data=post_data)
print(resp.text)
--------------------------------------------------------------------------------------------------------------------------------------
@Dung Nguyen
My apologies for the bad experience you may have faced with the service.
I'm happy to inform you that, at the moment, our service/recaptcha v2 solution is working fine for thousands of users! As such, I'd really like to help you get the most out of it. I've PM'd you accordingly.