browser_solve_captcha
Browser Solve Captcha
Auto-detect and solve any supported CAPTCHA type. Automatically detects whether it's text-based or image-selection and applies the appropriate solving strategy. Most convenient option when CAPTCHA type is unknown.
Usage Example
1234567891011
import asyncio
from owl_browser import OwlBrowser, RemoteConfig
# Async usage
async with OwlBrowser(config) as browser:
context = await browser.create_context()
context_id = context["context_id"]
await browser.solve_captcha(
context_id=context_id
)
Parameters
Required
context_idstringrequiredThe unique identifier of the browser context (e.g., 'ctx_000001')
Optional
max_attemptsstringMaximum number of attempts to solve the CAPTCHA. For image selection, each attempt may select different images. Default: 3
providerenumautoowlrecaptchacloudflare+1 moreCAPTCHA provider hint for optimized solving: 'auto' (detect automatically), 'owl' (Owl test CAPTCHAs), 'recaptcha' (Google reCAPTCHA), 'cloudflare' (Turnstile), 'hcaptcha'. Default: 'auto'
Response
Returns a JSON object with the operation result.
{
"success": true,
"result": <value>
}