Captcha solution api for capsolver.com
python -m pip install capsolver-api
from capsolver_api import HCaptchaTask
capsolver = HCaptchaTask('your_capsolver_api_key')
task_id = capsolver.create_task(task_type='HCaptchaTaskProxyLess',
website_url='https://accounts.hcaptcha.com/demo',
website_key='a5f74b19-9e45-40e0-b45d-47ff91b7a6c2'
)
captcha_key = capsolver.get_solution(task_id)
print(captcha_key)
from capsolver_api import HCaptchaTask
capsolver = HCaptchaTask('your_capsolver_api_key')
task_id = capsolver.create_task(task_type='HCaptchaTaskProxyLess',
website_url='https://accounts.hcaptcha.com/demo',
website_key='a5f74b19-9e45-40e0-b45d-47ff91b7a6c2'
)
captcha_key = capsolver.get_solution(task_id)
print(captcha_key)
from capsolver_api import ReCaptchaV2Task
capsolver = ReCaptchaV2Task('your_capsolver_api_key')
task_id = capsolver.create_task(task_type='ReCaptchaV2TaskProxyLess',
website_url='https://www.google.com/recaptcha/api2/reload?k=6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-',
website_key='6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-',
user_agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36' # optional
)
captcha_key = capsolver.get_solution(task_id)
print(captcha_key)
- Cloudflare (Turnstile / Challenge)
- Datadome
- Geetest
- Mtcaptcha
- Other recognitions
- More information for docs