.oO SearXNG Developer Documentation Oo.
|
Functions | |
is_cloudflare_challenge (resp) | |
is_cloudflare_firewall (resp) | |
raise_for_cloudflare_captcha (resp) | |
raise_for_recaptcha (resp) | |
raise_for_captcha (resp) | |
raise_for_httperror (resp) | |
Raise exception for an HTTP response is an error.
searx.network.raise_for_httperror.is_cloudflare_challenge | ( | resp | ) |
Definition at line 14 of file raise_for_httperror.py.
Referenced by searx.network.raise_for_httperror.raise_for_cloudflare_captcha().
searx.network.raise_for_httperror.is_cloudflare_firewall | ( | resp | ) |
Definition at line 27 of file raise_for_httperror.py.
Referenced by searx.network.raise_for_httperror.raise_for_cloudflare_captcha().
searx.network.raise_for_httperror.raise_for_captcha | ( | resp | ) |
Definition at line 54 of file raise_for_httperror.py.
References searx.network.raise_for_httperror.raise_for_cloudflare_captcha(), and searx.network.raise_for_httperror.raise_for_recaptcha().
Referenced by searx.network.raise_for_httperror.raise_for_httperror().
searx.network.raise_for_httperror.raise_for_cloudflare_captcha | ( | resp | ) |
Definition at line 31 of file raise_for_httperror.py.
References searx.network.raise_for_httperror.is_cloudflare_challenge(), and searx.network.raise_for_httperror.is_cloudflare_firewall().
Referenced by searx.network.raise_for_httperror.raise_for_captcha().
searx.network.raise_for_httperror.raise_for_httperror | ( | resp | ) |
Raise exception for an HTTP response is an error. Args: resp (requests.Response): Response to check Raises: requests.HTTPError: raise by resp.raise_for_status() searx.exceptions.SearxEngineAccessDeniedException: raise when the HTTP status code is 402 or 403. searx.exceptions.SearxEngineTooManyRequestsException: raise when the HTTP status code is 429. searx.exceptions.SearxEngineCaptchaException: raise when if CATPCHA challenge is detected.
Definition at line 59 of file raise_for_httperror.py.
References searx.network.raise_for_httperror.raise_for_captcha().
searx.network.raise_for_httperror.raise_for_recaptcha | ( | resp | ) |
Definition at line 47 of file raise_for_httperror.py.
Referenced by searx.network.raise_for_httperror.raise_for_captcha().