capmonster.cloud library for Python
Project description
Capmonster.cloud for Python
Capmonster.cloud package for Python3
If you have any problem with usage, read the documentation or create an issue
At least 2x cheaper, up to 30x faster than manual recognition services.
Installation
pip install capmonster_python
Supported captcha types
- Image to text
- Recaptcha v2
- Recaptcha v2 Enterprise
- Recaptcha v3
- Fun Captcha
- HCaptcha
- GeeTest
- Turnstile Task
- Data Dome
Usage examples
ImageToText
from capmonster_python import ImageToTextTask
capmonster = ImageToTextTask("API_KEY")
task_id = capmonster.create_task(image_path="img.png")
result = capmonster.join_task_result(task_id)
print(result.get("text"))
Recaptcha v2
from capmonster_python import RecaptchaV2Task
capmonster = RecaptchaV2Task("API_KEY")
task_id = capmonster.create_task("website_url", "website_key")
result = capmonster.join_task_result(task_id)
print(result.get("gRecaptchaResponse"))
Recaptcha v2 enterprise
from capmonster_python import RecaptchaV2EnterpriseTask
capmonster = RecaptchaV2EnterpriseTask("API_KEY")
task_id = capmonster.create_task("website_url", "website_key", {"s": "payload value"}, "api_domain")
result = capmonster.join_task_result(task_id)
print(result.get("gRecaptchaResponse"))
GeeTest
from capmonster_python import GeeTestTask
capmonster = GeeTestTask("API_KEY")
task_id = capmonster.create_task("website_url", "gt", "challenge")
result = capmonster.join_task_result(task_id)
print(result.get("challenge"))
print(result.get("seccode"))
print(result.get("validate"))
Report incorrect captchas
from capmonster_python import RecaptchaV2Task
capmonster = RecaptchaV2Task("API_KEY")
task_id = capmonster.create_task("website_url", "website_key")
result = capmonster.join_task_result(task_id)
report_result = capmonster.report_incorrect_captcha("token", task_id)
print(report_result)
For other examples and api documentation please visit wiki
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
Built Distribution
File details
Details for the file capmonster_python-3.2.0.tar.gz
.
File metadata
- Download URL: capmonster_python-3.2.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4b7f3281a790e45803eef23acc7de1711b85c6899966bcb4ee2ad5d5d3b5d25 |
|
MD5 | 683e3e8d85c36c95f9d859f7729a9f61 |
|
BLAKE2b-256 | 8ee0a41c9cdd515481ad33680ebd284c830eb801eb5c3c760d095a818fb33e4d |
File details
Details for the file capmonster_python-3.2.0-py3-none-any.whl
.
File metadata
- Download URL: capmonster_python-3.2.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68052a22275bb5c3fd4d6cafbc016abacbc4ce5a4d000ae1003f04217293908a |
|
MD5 | 02b073f1055145bb91338a542307d7fb |
|
BLAKE2b-256 | b095b645c09ba14084726df95b17871a811b4c674627bc7c8c1214f61963f337 |