captcha_exists

def captcha_exists(
    self
) -> bool:

Checks if a CAPTCHA is present in the current session.

return
bool

True if a CAPTCHA is detected, False otherwise.

raises
ValueError

Raises ValueError if the API request fails or if the API key is not set.

wait_for_captcha

def wait_for_captcha(
    self
) -> bool:

Waits for a CAPTCHA to be solved in the current session. If there’s no CAPTCHA, returns immediately.

return
bool

True if the CAPTCHA was successfully solved, False otherwise.

raises
ValueError

Raises ValueError if the API request fails or if the API key is not set.