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)
Metadata
Release files for capsolver 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| capsolver-1.0.7.tar.gz | 8.3 kB | Without provenance | Details for capsolver-1.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| capsolver-1.0.7-py3-none-any.whl | Python 3 | none | any | Details for capsolver-1.0.7-py3-none-any.whl |
Total release size: 17.6 kB
Release files / capsolver-1.0.7.tar.gz
| Download URL | capsolver-1.0.7.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3ec645c8752becb2c861d357bbc0cc23c5716bd9073e1b9b1cc5ecc5ba1d21f
|
|
BLAKE2b-256 checksum How to use checksums |
afaa9c2452c1d696ed72a9eea62920d0d4fcdadde1b30b57d23faa422bd1cd54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / capsolver-1.0.7-py3-none-any.whl
| Download URL | capsolver-1.0.7-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0497cc55398741a00c84c34bbad5698a7e76b73787b568622a6ec4d319c5773
|
|
BLAKE2b-256 checksum How to use checksums |
8fa67bdcf5194d90d267943c9f5c985f384a6a19dadc0cfc460b46f39929e154
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for capsolver 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.