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)

Hcaptcha

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.4.tar.gz (7.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for capsolver_api-1.0.4.tar.gz
Algorithm Hash digest
SHA256 41e26a72f43536c088c48da0268665fba9f8a5535b066151f0838dc5f2575315
MD5 a71b60e8ea405e867ed8511b86760c74
BLAKE2b-256 d26d763b652ac84bb374ed576d972695e246e64d8dc178a286a4ea9cce486311

See more details on using hashes here.

Provenance

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