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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file capsolver-1.0.2.tar.gz.
File metadata
- Download URL: capsolver-1.0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22dceee12e2474a2fb3b26fbd159b243a60e7242d366411bcd2669fc2b8e7370
|
|
| MD5 |
719de11b3dc0c463f8f807dbce438544
|
|
| BLAKE2b-256 |
330e195acacb246ce1802c6a8ad86842350227673a768d283c5976744e648126
|
File details
Details for the file capsolver-1.0.2-py3.10.egg.
File metadata
- Download URL: capsolver-1.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a8a2beeefcb7310f2526c7a9eb65ebebf7289978eb250e9af8e73a23ebf8e5e
|
|
| MD5 |
72ddb5ff9625870e68015a3024e752b2
|
|
| BLAKE2b-256 |
a3f6f637be4d1d334261d636ecfb9de9306eabb95fa9c51f8f4afd31d3c5cfc9
|
File details
Details for the file capsolver-1.0.2-py3-none-any.whl.
File metadata
- Download URL: capsolver-1.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
904b80bd093909fc53d149aa0f67d4bc6f9449fce7b7f63fdd9eb93d881a99ea
|
|
| MD5 |
5689da950a21b56d439b12e333342fde
|
|
| BLAKE2b-256 |
e4f1557f3e4351b67687fe5ab7e5cd4b94cb0e6a2a055da448a28fcb2b3bc078
|