capmonster-python-2.4
توضیحات
capmonster.cloud library for Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | capmonster-python-2.4 |
| نام | capmonster-python |
| نسخه کتابخانه | 2.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Alperen Sert |
| ایمیل نویسنده | business@alperen.io |
| آدرس صفحه اصلی | https://github.com/alperensert/capmonster_python |
| آدرس اینترنتی | https://pypi.org/project/capmonster-python/ |
| مجوز | MIT |
Capmonster.cloud for Python
=
      
[Capmonster.cloud](https://capmonster.cloud) package for Python3
If you have any problem with usage, [read the documentation](https://alperensert.github.io/capmonster_python) or [create an issue](https://github.com/alperensert/capmonster_python/issues/new)
*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
Usage examples
-
#### ImageToText
```python
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
```python
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
```python
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
```python
from capmonster_python import GeeTestTask
capmonster_python = GeeTestTask("API_KEY")
task_id = capmonster_python.create_task("website_url", "gt", "challenge")
result= capmonster_python.join_task_result(task_id)
print(result.get("challenge"))
print(result.get("seccode"))
print(result.get("validate"))
```
For other examples and api documentation please visit [wiki](https://alperensert.github.io/capmonster_python)
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | six |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3 | Python |
نحوه نصب
نصب پکیج whl capmonster-python-2.4:
pip install capmonster-python-2.4.whl
نصب پکیج tar.gz capmonster-python-2.4:
pip install capmonster-python-2.4.tar.gz