.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
None | __init__ (self, "PluginCfg" plg_cfg) |
bool | on_result (self, "SXNG_Request" request, "SearchWithPlugins" search, Result result) |
![]() | |
None | __init__ (self, PluginCfg plg_cfg) |
int | __hash__ (self) |
__eq__ (self, other) | |
bool | init (self, "flask.Flask" app) |
bool | pre_search (self, SXNG_Request request, "SearchWithPlugins" search) |
None|typing.Sequence[Result] | post_search (self, SXNG_Request request, "SearchWithPlugins" search) |
Public Attributes | |
info | |
Additional Inherited Members | |
![]() | |
str | id = "" |
typing | active .ClassVar[bool] |
list | keywords = [] |
logging | log .Logger |
str | fqn = "" |
Remove trackers arguments from the returned URL
Definition at line 28 of file tracker_url_remover.py.
None searx.plugins.tracker_url_remover.SXNGPlugin.__init__ | ( | self, | |
"PluginCfg" | plg_cfg ) |
Definition at line 33 of file tracker_url_remover.py.
References __init__().
Referenced by __init__().
bool searx.plugins.tracker_url_remover.SXNGPlugin.on_result | ( | self, | |
"SXNG_Request" | request, | ||
"SearchWithPlugins" | search, | ||
Result | result ) |
Runs for each result of each engine and returns a boolean: - ``True`` to keep the result - ``False`` to remove the result from the result list The ``result`` can be modified to the needs. .. hint:: If :py:obj:`Result.url <searx.result_types._base.Result.url>` is modified, :py:obj:`Result.parsed_url <searx.result_types._base.Result.parsed_url>` must be changed accordingly: .. code:: python result["parsed_url"] = urlparse(result["url"])
Reimplemented from searx.plugins._core.Plugin.
Definition at line 42 of file tracker_url_remover.py.
searx.plugins.tracker_url_remover.SXNGPlugin.info |
Definition at line 35 of file tracker_url_remover.py.