Skip to main content

capsolver.com library for Python

Project description

Capsolver API for Python

Captcha solution api for capsolver.com

Download

python -m pip install capsolver-api

Examples

Hcaptcha

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)

Funcaptcha

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)

RecaptchaV2

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)

And others:

  • Cloudflare (Turnstile / Challenge)
  • Datadome
  • Geetest
  • Mtcaptcha
  • Other recognitions
  • More information for docs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

capsolver_api-1.0.7.tar.gz (7.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page