.oO SearXNG Developer Documentation Oo.
|
Functions | |
is_cloudflare_challenge ("SXNG_Response" resp) | |
is_cloudflare_firewall ("SXNG_Response" resp) | |
raise_for_cloudflare_captcha ("SXNG_Response" resp) | |
raise_for_recaptcha ("SXNG_Response" resp) | |
raise_for_captcha ("SXNG_Response" resp) | |
None | raise_for_httperror ("SXNG_Response" resp) |
Raise exception for an HTTP response is an error.
searx.network.raise_for_httperror.is_cloudflare_challenge | ( | "SXNG_Response" | resp | ) |
Definition at line 18 of file raise_for_httperror.py.
Referenced by raise_for_cloudflare_captcha().
searx.network.raise_for_httperror.is_cloudflare_firewall | ( | "SXNG_Response" | resp | ) |
Definition at line 31 of file raise_for_httperror.py.
Referenced by raise_for_cloudflare_captcha().
searx.network.raise_for_httperror.raise_for_captcha | ( | "SXNG_Response" | resp | ) |
Definition at line 58 of file raise_for_httperror.py.
References raise_for_cloudflare_captcha(), and raise_for_recaptcha().
Referenced by raise_for_httperror().
searx.network.raise_for_httperror.raise_for_cloudflare_captcha | ( | "SXNG_Response" | resp | ) |
Definition at line 35 of file raise_for_httperror.py.
References searx.get_setting(), is_cloudflare_challenge(), and is_cloudflare_firewall().
Referenced by raise_for_captcha().
None searx.network.raise_for_httperror.raise_for_httperror | ( | "SXNG_Response" | 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 63 of file raise_for_httperror.py.
References raise_for_captcha().
searx.network.raise_for_httperror.raise_for_recaptcha | ( | "SXNG_Response" | resp | ) |
Definition at line 51 of file raise_for_httperror.py.
References searx.get_setting().
Referenced by raise_for_captcha().