capsolver


Namecapsolver JSON
Version 1.0.7 PyPI version JSON
download
home_pagehttps://github.com/capsolver/capsolver-python
Summarycapsolver python libary
upload_time2023-07-20 09:28:28
maintainer
docs_urlNone
authorcapsolver
requires_python>=3.6.8
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:

```sh
pip3 install --upgrade capsolver
```

Install from source with:

```sh
python setup.py install
```

## Usage

```bash
export CAPSOLVER_API_KEY='...'
```

Or set `capsolver.api_key` to its value:

```python
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)
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/capsolver/capsolver-python",
    "name": "capsolver",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "capsolver",
    "author_email": "capsolver.com@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/af/aa/9c2452c1d696ed72a9eea62920d0d4fcdadde1b30b57d23faa422bd1cd54/capsolver-1.0.7.tar.gz",
    "platform": null,
    "description": "# Capsolver\nCapsolver official python library\n\n## Supported CAPTCHA types:\n- HCaptcha\n- FunCaptcha\n- Geetest\n- ReCaptchaV2\n- ReCaptchav3\n- MtCaptcha\n- Datadom\n- Cloudflare\n- Kasada\n- Akamai BMP\n\n\n## Installation\n\nYou don't need this source code unless you want to modify the package. If you just\nwant to use the package, just run:\n\n```sh\npip3 install --upgrade capsolver\n```\n\nInstall from source with:\n\n```sh\npython setup.py install\n```\n\n## Usage\n\n```bash\nexport CAPSOLVER_API_KEY='...'\n```\n\nOr set `capsolver.api_key` to its value:\n\n```python\nfrom pathlib import Path\nimport os\nimport base64\nimport capsolver\n\n# tokenTask\nprint(\"api host\",capsolver.api_base)\nprint(\"api key\",capsolver.api_key)\n# capsolver.api_key = \"...\"\nsolution = capsolver.solve({\n        \"type\":\"ReCaptchaV2TaskProxyLess\",\n        \"websiteKey\":\"6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-\",\n        \"websiteURL\":\"https://www.google.com/recaptcha/api2/demo\",\n    })\n\nprint(solution)\n\n# RecognitionTask\nimg_path = os.path.join(Path(__file__).resolve().parent,\"queue-it.jpg\")\nwith open(img_path,'rb') as f:\n    solution = capsolver.solve({\n        \"type\":\"ImageToTextTask\",\n        \"module\":\"queueit\",\n        \"body\":base64.b64encode(f.read()).decode(\"utf8\")\n    })\n    print(solution)\n\n# get current balance\nbalance = capsolver.balance()\n# print the current balance\nprint(balance)\n```\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "capsolver python libary",
    "version": "1.0.7",
    "project_urls": {
        "Bug Tracker": "https://github.com/capsovler/capsovler-python/issues",
        "Homepage": "https://github.com/capsolver/capsolver-python"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8fa67bdcf5194d90d267943c9f5c985f384a6a19dadc0cfc460b46f39929e154",
                "md5": "5eb75dd0910bfe2dda07c75ad6545cbe",
                "sha256": "c0497cc55398741a00c84c34bbad5698a7e76b73787b568622a6ec4d319c5773"
            },
            "downloads": -1,
            "filename": "capsolver-1.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5eb75dd0910bfe2dda07c75ad6545cbe",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6.8",
            "size": 9385,
            "upload_time": "2023-07-20T09:28:26",
            "upload_time_iso_8601": "2023-07-20T09:28:26.389935Z",
            "url": "https://files.pythonhosted.org/packages/8f/a6/7bdcf5194d90d267943c9f5c985f384a6a19dadc0cfc460b46f39929e154/capsolver-1.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "afaa9c2452c1d696ed72a9eea62920d0d4fcdadde1b30b57d23faa422bd1cd54",
                "md5": "c5a6dee38355a7be50336d6ef4826c0e",
                "sha256": "e3ec645c8752becb2c861d357bbc0cc23c5716bd9073e1b9b1cc5ecc5ba1d21f"
            },
            "downloads": -1,
            "filename": "capsolver-1.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "c5a6dee38355a7be50336d6ef4826c0e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6.8",
            "size": 8255,
            "upload_time": "2023-07-20T09:28:28",
            "upload_time_iso_8601": "2023-07-20T09:28:28.153010Z",
            "url": "https://files.pythonhosted.org/packages/af/aa/9c2452c1d696ed72a9eea62920d0d4fcdadde1b30b57d23faa422bd1cd54/capsolver-1.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-20 09:28:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "capsolver",
    "github_project": "capsolver-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "capsolver"
}
        
Elapsed time: 1.04261s