Official python client library for https://docs.brocapgpt.com captcha recognition service.
Project description
BroCapClient
Official python client library for brocapgpt captcha recognition service
Installation
python3 -m pip install brocapclient
Usage
import asyncio
from brocapclient.requests import HcaptchaRequest, FuncaptchaRequest, FoxcaptchaRequest
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 example
hcaptcha_request = HcaptchaRequest(
websiteUrl="https://example.com/",
websiteKey="d391ffb1-bc91-4ef8-a45a-2e2213af091b",
userAgent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
)
responses = asyncio.run(solve_captcha(hcaptcha_request))
# Funcaptcha request example
funcaptcha_request = FuncaptchaRequest(
websiteUrl="http://mywebsite.com/",
websiteKey="69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC",
userAgent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
)
responses = asyncio.run(solve_captcha(funcaptcha_request))
# Foxcaptcha request example
foxcaptcha_request = FoxcaptchaRequest(
websiteUrl="https://example.com/",
websiteKey="sk_bo5o532TDv2Jey4fibTVChVS8z-cRdCE",
userAgent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
)
responses = asyncio.run(solve_captcha(foxcaptcha_request))
Supported captcha recognition requests:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
brocapclient-1.0.4.tar.gz
(8.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brocapclient-1.0.4.tar.gz.
File metadata
- Download URL: brocapclient-1.0.4.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d2fa80bb170d4ab6f0b0880d68e715d66eb94eadc104df8390f953d364d0d66
|
|
| MD5 |
fe1a56a97038fe148c795decad60605f
|
|
| BLAKE2b-256 |
efdb951b2938e3c1cbee2b65dcdb766399ef061eb05e452f5c75fcde32939d67
|
File details
Details for the file brocapclient-1.0.4-py3-none-any.whl.
File metadata
- Download URL: brocapclient-1.0.4-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d0b6f15873e2f1a296f579ec5cd0cb6a028bafd675744934664c23ff67f4d8b
|
|
| MD5 |
47b6592f481e742be04cc74f96997543
|
|
| BLAKE2b-256 |
03fb54a5dec3618a32a5dfd7aee48440fd3965d360ff9c2586a6f72aea857941
|