AZcaptcha for Python

Sync and async clients, typed errors, zero dependencies, Python 3.9+.

pip install azcaptcha

Quickstart

Python
from azcaptcha import Azcaptcha

client = Azcaptcha("YOUR_API_KEY")
token = client.solve_recaptcha_v2(
    "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
    "https://example.com/login",
)
print(token)
At a glance
Package
azcaptcha
Version
1.0.0
Contract
spec-v1.0.0
License
MIT
  • Sync + async (asyncio)
  • Typed exceptions
  • No runtime dependencies

Three captcha types, three snippets

Python
token = client.solve_recaptcha_v2(sitekey, pageurl)
# invisible / enterprise
token = client.solve_recaptcha_v2(sitekey, pageurl, invisible=True)
Python
token = client.solve_turnstile("0x4AAAAAAA...", "https://example.com/")
token = client.solve_hcaptcha("SITEKEY", "https://example.com/")
Python
# bytes, base64, data: URI or file path
answer = client.solve_image("captcha.png")

All snippets assume YOUR_API_KEY is set and a client named client exists. Polling timeouts and retry behaviour are handled by the SDK.