Search processors

Abstract processor class

Abstract base classes for engine request processores.

class searx.search.processors.abstract.EngineProcessor(engine, engine_name: str)[source]

Base classes used for all types of reqest processores.

get_params(search_query, engine_category)[source]

Returns a set of (see request params) or None if request is not supported.

Not supported conditions (None is returned):

  • A page-number > 1 when engine does not support paging.

  • A time range when the engine does not support time range.

class searx.search.processors.abstract.SuspendedStatus[source]

Class to handle suspend state.

Offline processor

Processores for engine-type: offline

class searx.search.processors.offline.OfflineProcessor(engine, engine_name: str)[source]

Processor class used by offline engines

Online processor

Processores for engine-type: online

class searx.search.processors.online.OnlineProcessor(engine, engine_name: str)[source]

Processor class for online engines.

get_params(search_query, engine_category)[source]

Returns a set of request params or None if request is not supported.

searx.search.processors.online.default_request_params()[source]

Default request parameters for online engines.

Online currency processor

Processores for engine-type: online_currency

class searx.search.processors.online_currency.OnlineCurrencyProcessor(engine, engine_name: str)[source]

Processor class used by online_currency engines.

get_params(search_query, engine_category)[source]

Returns a set of request params or None if search query does not match to parser_re.

Online Dictionary processor

Processores for engine-type: online_dictionary

class searx.search.processors.online_dictionary.OnlineDictionaryProcessor(engine, engine_name: str)[source]

Processor class used by online_dictionary engines.

get_params(search_query, engine_category)[source]

Returns a set of request params or None if search query does not match to parser_re.