.oO SearXNG Developer Documentation Oo.
|
Classes | |
class | Checker |
class | CheckerTests |
class | ResultContainerTests |
class | TestResults |
Functions | |
get_check_no_html () | |
_is_url (url) | |
bool | _download_and_check_if_image (str image_url) |
bool | _is_url_image (image_url) |
typing.Dict[str, typing.Any] | _search_query_to_dict (SearchQuery search_query) |
typing.Tuple[typing.Dict[str, typing.Any], typing.Dict[str, typing.Any]] | _search_query_diff (SearchQuery sq1, SearchQuery sq2) |
Variables | |
logger = logger.getChild('searx.search.checker') | |
list | HTML_TAGS |
_check_no_html = get_check_no_html() | |
|
protected |
Download an URL and check if the Content-Type starts with "image/" This function should not be called directly: use _is_url_image otherwise the cache of functools.lru_cache contains data: URL which might be huge.
Definition at line 64 of file impl.py.
Referenced by searx.search.checker.impl._is_url_image().
|
protected |
Definition at line 53 of file impl.py.
Referenced by searx.search.checker.impl._is_url_image().
|
protected |
Normalize image_url
Definition at line 110 of file impl.py.
References searx.search.checker.impl._download_and_check_if_image(), and searx.search.checker.impl._is_url().
Referenced by searx.search.checker.impl.ResultContainerTests._check_result().
|
protected |
Definition at line 137 of file impl.py.
References searx.search.checker.impl._search_query_to_dict().
|
protected |
Definition at line 127 of file impl.py.
Referenced by searx.search.checker.impl.ResultContainerTests._record_error(), and searx.search.checker.impl._search_query_diff().
searx.search.checker.impl.get_check_no_html | ( | ) |
|
protected |
Definition at line 50 of file impl.py.
Referenced by searx.search.checker.impl.ResultContainerTests._check_answers(), searx.search.checker.impl.ResultContainerTests._check_infoboxes(), and searx.search.checker.impl.ResultContainerTests._check_result().
list searx.search.checker.impl.HTML_TAGS |