.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
initialize (self, t.Callable[["EngineProcessor", bool], bool] callback) | |
OnlineCurrenciesParams|None | get_params (self, "SearchQuery" search_query, str engine_category) |
Public Member Functions inherited from searx.search.processors.online.OnlineProcessor | |
bool | init_engine (self) |
init_network_in_thread (self, float start_time, float timeout_limit) | |
search (self, str query, OnlineParams params, "ResultContainer" result_container, float start_time, float timeout_limit) | |
Public Member Functions inherited from searx.search.processors.abstract.EngineProcessor | |
__init__ (self, "Engine|types.ModuleType" engine) | |
handle_exception (self, "ResultContainer" result_container, BaseException|str exception_or_message, bool suspend=False) | |
extend_container (self, "ResultContainer" result_container, float start_time, "list[Result | LegacyResult]|None" search_results) | |
bool | extend_container_if_suspended (self, "ResultContainer" result_container) |
get_tests (self) | |
get_default_tests (self) |
Additional Inherited Members | |
Public Attributes inherited from searx.search.processors.abstract.EngineProcessor | |
engine = engine | |
logging.Logger | logger = engines[engine.name].logger |
SuspendedStatus | suspended_status = SUSPENDED_STATUS.setdefault(key, SuspendedStatus()) |
Static Public Attributes inherited from searx.search.processors.online.OnlineProcessor | |
str | engine_type = "online" |
Protected Member Functions inherited from searx.search.processors.online.OnlineProcessor | |
_send_http_request (self, OnlineParams params) | |
"EngineResults|None" | _search_basic (self, str query, OnlineParams params) |
Protected Member Functions inherited from searx.search.processors.abstract.EngineProcessor | |
_extend_container_basic (self, "ResultContainer" result_container, float start_time, "list[Result | LegacyResult]" search_results) |
Processor class used by ``online_currency`` engines.
Definition at line 50 of file online_currency.py.
OnlineCurrenciesParams | None searx.search.processors.online_currency.OnlineCurrencyProcessor.get_params | ( | self, | |
"SearchQuery" | search_query, | ||
str | engine_category ) |
Returns a dictionary with the :ref:`request params <engine request online_currency>` (:py:obj:`OnlineCurrenciesParams`). ``None`` is returned if the search query does not match :py:obj:`search_syntax`.
Reimplemented from searx.search.processors.online.OnlineProcessor.
Definition at line 59 of file online_currency.py.
References searx.search.processors.online_currency._normalize_name(), and get_params().
Referenced by get_params().
searx.search.processors.online_currency.OnlineCurrencyProcessor.initialize | ( | self, | |
t.Callable[["EngineProcessor", bool], bool] | callback ) |
Initialization of *this* :py:obj:`EngineProcessor`. If processor's engine has an ``init`` method, it is called first. Engine's ``init`` method is executed in a thread, meaning that the *registration* (the ``callback``) may occur later and is not already established by the return from this registration method. Registration only takes place if the ``init`` method is not available or is successfully run through.
Reimplemented from searx.search.processors.abstract.EngineProcessor.
Definition at line 55 of file online_currency.py.
References initialize().
Referenced by initialize().