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 details)

Uploaded Source

File details

Details for the file capsolver_api-1.0.7.tar.gz.

File metadata

  • Download URL: capsolver_api-1.0.7.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for capsolver_api-1.0.7.tar.gz
Algorithm Hash digest
SHA256 255f239f235d50b8598136399f1ba543349d3ab5d67a9ea5297a629a1aee3888
MD5 3ba5b7d74758a45ab7fbd992472300cd
BLAKE2b-256 d76548b2bfc16f38ec87ad4ab137e29693f690137c230f65d04d0c86ce9865e6

See more details on using hashes here.

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