.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
self_info.py File Reference

Go to the source code of this file.

Namespaces

namespace  searx
 
namespace  searx.plugins
 
namespace  searx.plugins.self_info
 

Functions

 searx.plugins.self_info.post_search (request, search)
 

Variables

 searx.plugins.self_info.name = gettext('Self Information')
 
 searx.plugins.self_info.description = gettext('Displays your IP if the query is "ip" and your user agent if the query contains "user agent".')
 
bool searx.plugins.self_info.default_on = True
 
str searx.plugins.self_info.preference_section = 'query'
 
list searx.plugins.self_info.query_keywords = ['user-agent']
 
str searx.plugins.self_info.query_examples = ''
 
 searx.plugins.self_info.ip_regex = re.compile('^ip$|my ip', re.IGNORECASE)
 
 searx.plugins.self_info.ua_regex = re.compile('.*user[ -]agent.*', re.IGNORECASE)