Skip to main content

No project description provided

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

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.3.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brocapclient-1.0.3-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file brocapclient-1.0.3.tar.gz.

File metadata

  • Download URL: brocapclient-1.0.3.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for brocapclient-1.0.3.tar.gz
Algorithm Hash digest
SHA256 237f2ab3cf1d5e9f540bba004ca4aea00dd7bb0f2e5c4c693061e373dd6b2d6f
MD5 f86741b6c9c5fd418aa4cade250003e7
BLAKE2b-256 0a8df18aea6821a6429693dd10d34795ccc8a85e5effcd9108978d5c9bfeb1e6

See more details on using hashes here.

File details

Details for the file brocapclient-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: brocapclient-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for brocapclient-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 034c8ba54aab5a4ec978b4d4511efdcdce55e0bfbc3d392a66258f6bf07ef774
MD5 7605b7db256f03c91fbb5dff58a843de
BLAKE2b-256 34f6dc5763c2526660f0c71f3a4ab7d2347b7da4b834634d2e264b28c9315e14

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page