## BroCapClient
Official python client library for [brocapgpt](https://docs.brocapgpt.com/) captcha recognition service
## Installation
```bash
python3 -m pip install brocapclient
```
## Usage
```python
import asyncio
from brocapclient.requests import HcaptchaRequest
from brocapclient import BroCapGptClient, ClientOptions
client_options = ClientOptions(api_key=<YOUR_API_KEY>)
brocap_client = BroCapGptClient(options=client_options)
async def solve_captcha(request):
return await brocap_client.solve_captcha(request)
hcaptcha_request = HcaptchaRequest(
websiteUrl='https://example.com/',
websiteKey="d391ffb1-bc91-4ef8-a45a-2e2213af091b",
user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
fallbackToActualUA=True
)
responses = asyncio.run(solve_captcha(hcaptcha_request))
print(responses)
```
### Supported captcha recognition requests:
- [FunCaptcha](https://docs.brocapgpt.com/docs/captchas/funcaptcha-task/)
- [HCaptcha](https://docs.brocapgpt.com/docs/captchas/hcaptcha-task)
- [CaptchaFox](https://docs.brocapgpt.com/docs/captchas/captchafox-task)
Raw data
{
"_id": null,
"home_page": null,
"name": "brocapclient",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "captcha \n\t\t\t\thcaptcha\n\t\t\t\tfuncaptcha\n foxcaptcha\n\t\t\t\tpython3\n\t\t\t\tpython-library\n\t\t\t\tbrocapgpt",
"author": "Nikita Markov",
"author_email": "dev@brocapgpt.com",
"download_url": "https://files.pythonhosted.org/packages/21/56/56c2bf1f13a6cc66f89c5ce032a87ec0db6b89939b96c9ad314acd58a1b0/brocapclient-1.0.2.tar.gz",
"platform": null,
"description": "## BroCapClient\nOfficial python client library for [brocapgpt](https://docs.brocapgpt.com/) captcha recognition service\n\n## Installation\n```bash\npython3 -m pip install brocapclient\n```\n\n## Usage\n```python\nimport asyncio\n\nfrom brocapclient.requests import HcaptchaRequest\nfrom brocapclient import BroCapGptClient, ClientOptions\n\nclient_options = ClientOptions(api_key=<YOUR_API_KEY>)\nbrocap_client = BroCapGptClient(options=client_options)\n\nasync def solve_captcha(request):\n return await brocap_client.solve_captcha(request)\n\nhcaptcha_request = HcaptchaRequest(\n websiteUrl='https://example.com/',\n websiteKey=\"d391ffb1-bc91-4ef8-a45a-2e2213af091b\",\n user_agent=\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36\",\n fallbackToActualUA=True\n)\n\nresponses = asyncio.run(solve_captcha(hcaptcha_request))\nprint(responses)\n```\n\n### Supported captcha recognition requests:\n- [FunCaptcha](https://docs.brocapgpt.com/docs/captchas/funcaptcha-task/)\n- [HCaptcha](https://docs.brocapgpt.com/docs/captchas/hcaptcha-task)\n- [CaptchaFox](https://docs.brocapgpt.com/docs/captchas/captchafox-task)\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": null,
"version": "1.0.2",
"project_urls": null,
"split_keywords": [
"captcha",
"\n\t\t\t\thcaptcha\n\t\t\t\tfuncaptcha\n",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"foxcaptcha\n\t\t\t\tpython3\n\t\t\t\tpython-library\n\t\t\t\tbrocapgpt"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "9e00d96e6dde918ea3a199fe8ba29e6ea51e47eef2e6bcd153f4335b325ec045",
"md5": "58e32ab1f10704df3bd98e6e0999b715",
"sha256": "83d2eea763ef0c902354e79fb4c7bbd561b9fd8cb3418f6a943a0de42654b67f"
},
"downloads": -1,
"filename": "brocapclient-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "58e32ab1f10704df3bd98e6e0999b715",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 11281,
"upload_time": "2025-10-08T13:28:22",
"upload_time_iso_8601": "2025-10-08T13:28:22.342891Z",
"url": "https://files.pythonhosted.org/packages/9e/00/d96e6dde918ea3a199fe8ba29e6ea51e47eef2e6bcd153f4335b325ec045/brocapclient-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "215656c2bf1f13a6cc66f89c5ce032a87ec0db6b89939b96c9ad314acd58a1b0",
"md5": "179e8967100e2a2e432fd4a2ed6da979",
"sha256": "4872a41b1299fcbc06b628dc66d4a2ef9261895dd2d791e6edb9426bc363aab6"
},
"downloads": -1,
"filename": "brocapclient-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "179e8967100e2a2e432fd4a2ed6da979",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 7999,
"upload_time": "2025-10-08T13:28:23",
"upload_time_iso_8601": "2025-10-08T13:28:23.747907Z",
"url": "https://files.pythonhosted.org/packages/21/56/56c2bf1f13a6cc66f89c5ce032a87ec0db6b89939b96c9ad314acd58a1b0/brocapclient-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-08 13:28:23",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "brocapclient"
}