capmonster-python


Namecapmonster-python JSON
Version 3.2.0 PyPI version JSON
download
home_pagehttps://github.com/alperensert/capmonster_python
Summarycapmonster.cloud library for Python
upload_time2024-04-27 13:03:42
maintainerNone
docs_urlNone
authorAlperen Sert
requires_python>=3
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Capmonster.cloud for Python
=
![PyPI - Wheel](https://img.shields.io/pypi/wheel/capmonster-python?style=plastic) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/capmonster_python?style=flat) ![GitHub last commit](https://img.shields.io/github/last-commit/alperensert/capmonster_python?style=flat) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/alperensert/capmonster_python?style=flat) ![PyPI - Downloads](https://img.shields.io/pypi/dm/capmonster_python?style=flat) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/alperensert/capmonster_python?style=flat) ![GitHub Repo stars](https://img.shields.io/github/stars/alperensert/capmonster_python?style=social)

[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
- Data Dome

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 = 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

```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)
report_result = capmonster.report_incorrect_captcha("token", task_id)
print(report_result)
```

For other examples and api documentation please visit [wiki](https://alperensert.github.io/capmonster_python)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/alperensert/capmonster_python",
    "name": "capmonster-python",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": null,
    "keywords": null,
    "author": "Alperen Sert",
    "author_email": "business@alperen.io",
    "download_url": "https://files.pythonhosted.org/packages/8e/e0/a41c9cdd515481ad33680ebd284c830eb801eb5c3c760d095a818fb33e4d/capmonster_python-3.2.0.tar.gz",
    "platform": null,
    "description": "Capmonster.cloud for Python\n=\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/capmonster-python?style=plastic) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/capmonster_python?style=flat) ![GitHub last commit](https://img.shields.io/github/last-commit/alperensert/capmonster_python?style=flat) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/alperensert/capmonster_python?style=flat) ![PyPI - Downloads](https://img.shields.io/pypi/dm/capmonster_python?style=flat) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/alperensert/capmonster_python?style=flat) ![GitHub Repo stars](https://img.shields.io/github/stars/alperensert/capmonster_python?style=social)\n\n[Capmonster.cloud](https://capmonster.cloud) package for Python3\n\nIf you have any problem with usage, [read the documentation](https://alperensert.github.io/capmonster_python)\nor [create an issue](https://github.com/alperensert/capmonster_python/issues/new)\n\n*At least 2x cheaper, up to 30x faster than manual recognition services.*\n\n### Installation\n\n```\npip install capmonster_python\n```\n\n### Supported captcha types\n\n- Image to text\n- Recaptcha v2\n- Recaptcha v2 Enterprise\n- Recaptcha v3\n- Fun Captcha\n- HCaptcha\n- GeeTest\n- Turnstile Task\n- Data Dome\n\nUsage examples\n-\n\n#### ImageToText\n\n```python\nfrom capmonster_python import ImageToTextTask\n\ncapmonster = ImageToTextTask(\"API_KEY\")\ntask_id = capmonster.create_task(image_path=\"img.png\")\nresult = capmonster.join_task_result(task_id)\nprint(result.get(\"text\"))\n```\n\n#### Recaptcha v2\n\n```python\nfrom capmonster_python import RecaptchaV2Task\n\ncapmonster = RecaptchaV2Task(\"API_KEY\")\ntask_id = capmonster.create_task(\"website_url\", \"website_key\")\nresult = capmonster.join_task_result(task_id)\nprint(result.get(\"gRecaptchaResponse\"))\n```\n\n#### Recaptcha v2 enterprise\n\n```python\nfrom capmonster_python import RecaptchaV2EnterpriseTask\n\ncapmonster = RecaptchaV2EnterpriseTask(\"API_KEY\")\ntask_id = capmonster.create_task(\"website_url\", \"website_key\", {\"s\": \"payload value\"}, \"api_domain\")\nresult = capmonster.join_task_result(task_id)\nprint(result.get(\"gRecaptchaResponse\"))\n```\n\n#### GeeTest\n\n```python\nfrom capmonster_python import GeeTestTask\n\ncapmonster = GeeTestTask(\"API_KEY\")\ntask_id = capmonster.create_task(\"website_url\", \"gt\", \"challenge\")\nresult = capmonster.join_task_result(task_id)\nprint(result.get(\"challenge\"))\nprint(result.get(\"seccode\"))\nprint(result.get(\"validate\"))\n```\n\n#### Report incorrect captchas\n\n```python\nfrom capmonster_python import RecaptchaV2Task\n\ncapmonster = RecaptchaV2Task(\"API_KEY\")\ntask_id = capmonster.create_task(\"website_url\", \"website_key\")\nresult = capmonster.join_task_result(task_id)\nreport_result = capmonster.report_incorrect_captcha(\"token\", task_id)\nprint(report_result)\n```\n\nFor other examples and api documentation please visit [wiki](https://alperensert.github.io/capmonster_python)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "capmonster.cloud library for Python",
    "version": "3.2.0",
    "project_urls": {
        "Documentation": "https://alperensert.github.io/capmonster_python/",
        "Homepage": "https://github.com/alperensert/capmonster_python",
        "Source": "https://github.com/alperensert/capmonster_python/",
        "Tracker": "https://github.com/alperensert/capmonster_python/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b095b645c09ba14084726df95b17871a811b4c674627bc7c8c1214f61963f337",
                "md5": "02b073f1055145bb91338a542307d7fb",
                "sha256": "68052a22275bb5c3fd4d6cafbc016abacbc4ce5a4d000ae1003f04217293908a"
            },
            "downloads": -1,
            "filename": "capmonster_python-3.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "02b073f1055145bb91338a542307d7fb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3",
            "size": 13674,
            "upload_time": "2024-04-27T13:03:41",
            "upload_time_iso_8601": "2024-04-27T13:03:41.110825Z",
            "url": "https://files.pythonhosted.org/packages/b0/95/b645c09ba14084726df95b17871a811b4c674627bc7c8c1214f61963f337/capmonster_python-3.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8ee0a41c9cdd515481ad33680ebd284c830eb801eb5c3c760d095a818fb33e4d",
                "md5": "683e3e8d85c36c95f9d859f7729a9f61",
                "sha256": "a4b7f3281a790e45803eef23acc7de1711b85c6899966bcb4ee2ad5d5d3b5d25"
            },
            "downloads": -1,
            "filename": "capmonster_python-3.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "683e3e8d85c36c95f9d859f7729a9f61",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 9217,
            "upload_time": "2024-04-27T13:03:42",
            "upload_time_iso_8601": "2024-04-27T13:03:42.366315Z",
            "url": "https://files.pythonhosted.org/packages/8e/e0/a41c9cdd515481ad33680ebd284c830eb801eb5c3c760d095a818fb33e4d/capmonster_python-3.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-27 13:03:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "alperensert",
    "github_project": "capmonster_python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "capmonster-python"
}
        
Elapsed time: 0.21295s