.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.search.processors.online_currency Namespace Reference

Classes

class  CurrenciesParams
class  OnlineCurrenciesParams
class  OnlineCurrencyProcessor

Functions

 _normalize_name (str name)

Variables

 search_syntax = re.compile(r".*?(\d+(?:\.\d+)?) ([^.0-9]+) (?:in|to) ([^.0-9]+)", re.I)

Detailed Description

Processor used for ``online_currency`` engines.

Function Documentation

◆ _normalize_name()

searx.search.processors.online_currency._normalize_name ( str name)
protected

Definition at line 116 of file online_currency.py.

116def _normalize_name(name: str):
117 name = name.strip()
118 name = name.lower().replace("-", " ")
119 name = re.sub(" +", " ", name)
120 return unicodedata.normalize("NFKD", name).lower()

Referenced by searx.search.processors.online_currency.OnlineCurrencyProcessor.get_params().

Here is the caller graph for this function:

Variable Documentation

◆ search_syntax

searx.search.processors.online_currency.search_syntax = re.compile(r".*?(\d+(?:\.\d+)?) ([^.0-9]+) (?:in|to) ([^.0-9]+)", re.I)

Definition at line 20 of file online_currency.py.