Skip to main content

capsolver python libary

Project description

Capsolver

Capsolver official python library

Supported CAPTCHA types:

  • HCaptcha
  • FunCaptcha
  • Geetest
  • ReCaptchaV2
  • ReCaptchav3
  • MtCaptcha
  • Datadom
  • Cloudflare
  • Kasada
  • Akamai BMP

Installation

You don't need this source code unless you want to modify the package. If you just want to use the package, just run:

pip3 install --upgrade capsolver

Install from source with:

python setup.py install

Usage

export CAPSOLVER_API_KEY='...'

Or set capsolver.api_key to its value:

from pathlib import Path
import os
import base64
import capsolver

# tokenTask
print("api host",capsolver.api_base)
print("api key",capsolver.api_key)
# capsolver.api_key = "..."
solution = capsolver.solve({
        "type":"ReCaptchaV2TaskProxyLess",
        "websiteKey":"6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
        "websiteURL":"https://www.google.com/recaptcha/api2/demo",
    })

print(solution)

# RecognitionTask
img_path = os.path.join(Path(__file__).resolve().parent,"queue-it.jpg")
with open(img_path,'rb') as f:
    solution = capsolver.solve({
        "type":"ImageToTextTask",
        "module":"queueit",
        "body":base64.b64encode(f.read()).decode("utf8")
    })
    print(solution)

# get current balance
balance = capsolver.balance()
# print the current balance
print(balance)

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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

capsolver-1.0.1-py3.10.egg (17.5 kB view details)

Uploaded Egg

capsolver-1.0.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file capsolver-1.0.1.tar.gz.

File metadata

  • Download URL: capsolver-1.0.1.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for capsolver-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6698c295ca81baf25c5f271704d242a2f1d2369b06e98e8101224316a6a41704
MD5 2313ba84b2cf71aa708be8eff5b8a551
BLAKE2b-256 ac84ee8d44aad0f84159edbf6580376d7e788b0ec3550039f152e0a993209c09

See more details on using hashes here.

File details

Details for the file capsolver-1.0.1-py3.10.egg.

File metadata

  • Download URL: capsolver-1.0.1-py3.10.egg
  • Upload date:
  • Size: 17.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for capsolver-1.0.1-py3.10.egg
Algorithm Hash digest
SHA256 a13d0d901f24de63fcec12964567b12244b1f5da912d290d69267f477e942622
MD5 b0d4bde2009ca98fb3ab515f83086124
BLAKE2b-256 56e85901a547565a19b8517e3ac2a81d13bbddfa18184d268d223991d69a8371

See more details on using hashes here.

File details

Details for the file capsolver-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: capsolver-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for capsolver-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ab18d67047398f7e70d9fa3e0b4f4e78b9dae361d8fec8389c901c0965f94c5
MD5 091a0c68d05501f1e46007185371a330
BLAKE2b-256 864eb51e14884101f7a053d7cf5e26011789b085b6208449aa96940eaa8ff782

See more details on using hashes here.

Supported by

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