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.6.tar.gz (8.4 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.6-py3.10.egg (17.7 kB view details)

Uploaded Egg

capsolver-1.0.6-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for capsolver-1.0.6.tar.gz
Algorithm Hash digest
SHA256 69542073f73e35b65b6c454563001f0711cc24e607aa8f73d531a6c057593202
MD5 2b29f47d19598b5d23e8c5b1543fa6da
BLAKE2b-256 9ab0232ba60fb2c1cbaf1efedeae42900011c3c7257d90ad58b371fd7d9111eb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for capsolver-1.0.6-py3.10.egg
Algorithm Hash digest
SHA256 7d442c3e37210219cfde0ef486520a6fb1b1f2e4233164c1b78d55c3f9f73833
MD5 411ca5fb56085b04f4ef335eed6d2f3c
BLAKE2b-256 1a66ae90ee38620ab288320bcdd31dbdc5ab19a2fc4604b063a22b8736d1878d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for capsolver-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 73cc6a7f4417dba883774cbe9670d80b2999cd67e10df4ec63a0a6bb51020060
MD5 d609bab86b92f155b2d62f9287ba0dc5
BLAKE2b-256 4274a41e51c8197b67cc795449117b1a5508863d5b3efa3002249189f9e24b85

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