CapSolver.com library for Python3
Project description
Capsolver Python3
Capsolver python3 library
Installation
Use pip to install the library:
pip3 install --upgrade capsolver-python3
Install from source with:
python setup.py install
Usage
ImageToText
from capsolver_python import ImageToTextTask
capsolver = ImageToTextTask("API_KEY")
task_id = capsolver.create_task(image_path="img.png")
result = capsolver.join_task_result(task_id)
print(result.get("text"))
Recaptcha v2
from capsolver_python import RecaptchaV2Task
capsolver = RecaptchaV2Task("API_KEY")
task_id = capsolver.create_task("website_url", "website_key")
result = capsolver.join_task_result(task_id)
print(result.get("gRecaptchaResponse"))
Recaptcha v2 enterprise
from capsolver_python import RecaptchaV2EnterpriseTask
capsolver = RecaptchaV2EnterpriseTask("API_KEY")
task_id = capsolver.create_task("website_url", "website_key", {"s": "payload value"}, "api_domain")
result = capsolver.join_task_result(task_id)
print(result.get("gRecaptchaResponse"))
GeeTest
from capsolver_python import GeeTestTask
capsolver = GeeTestTask("API_KEY")
task_id = capsolver.create_task("website_url", "gt", "challenge")
result= capsolver.join_task_result(task_id)
print(result.get("challenge"))
print(result.get("seccode"))
print(result.get("validate"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file capsolver_python3-1.0.1.tar.gz
.
File metadata
- Download URL: capsolver_python3-1.0.1.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b237b3c22d65472e898ed10f60dc95182bd46889e3008397be77b54b91f73236 |
|
MD5 | 55b56030cfcc55e135342c25ee77f898 |
|
BLAKE2b-256 | b3aa18059a3f035d5e7a240d065876b92bbcb7034281d47b3891c43856e3c04e |