Self-Info

Back to top

class searx.plugins.self_info.SXNGPlugin(plg_cfg: PluginCfg)[source] : Simple plugin that displays information about user’s request, including the IP or HTTP User-Agent. The information is displayed in area for the “answers”.

id: [str](https://docs.python.org/3/builtins/stdtypes.html#str) = 'self\_info'
:   The ID (suffix) in the HTML form.

keywords: [list](https://docs.python.org/3/builtins/stdtypes.html#list)[[str](https://docs.python.org/3/builtins/stdtypes.html#str)] = ['ip', 'user-agent']
:   Keywords in the search query that activate the plugin. The *keyword* is
    the first word in a search query. If a plugin should be executed regardless
    of the search query, the list of keywords should be empty (which is also the
    default in the base class for Plugins).

post\_search(*request: [SXNG\_Request](https://docs.searxng.org/dev/extended_types.html#searx.extended_types.SXNG_Request)*, *search: [SearchWithPlugins](https://docs.searxng.org/src/searx.search.html#searx.search.SearchWithPlugins)*) → [EngineResults](https://docs.searxng.org/dev/engines/index.html#searx.result_types.EngineResults)[[source]](https://docs.searxng.org/_modules/searx/plugins/self_info.html#SXNGPlugin.post_search)
:   Returns a result list only for the first page.

Copyright © SearXNG team

Made with Furo

💾 🌐