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

Go to the source code of this file.

Namespaces

namespace  searx
 
namespace  searx.plugins
 
namespace  searx.plugins.hostnames
 

Functions

 searx.plugins.hostnames._load_regular_expressions (settings_key)
 
 searx.plugins.hostnames._matches_parsed_url (result, pattern)
 
 searx.plugins.hostnames.on_result (_request, _search, result)
 

Variables

 searx.plugins.hostnames.name = gettext('Hostnames plugin')
 
 searx.plugins.hostnames.description = gettext('Rewrite hostnames, remove results or prioritize them based on the hostname')
 
bool searx.plugins.hostnames.default_on = False
 
str searx.plugins.hostnames.preference_section = 'general'
 
str searx.plugins.hostnames.plugin_id = 'hostnames'
 
 searx.plugins.hostnames.logger = logger.getChild(plugin_id)
 
str searx.plugins.hostnames.parsed = 'parsed_url'
 
list searx.plugins.hostnames._url_fields = ['iframe_src', 'audio_src']
 
 searx.plugins.hostnames.replacements = _load_regular_expressions('replace')
 
 searx.plugins.hostnames.removables = _load_regular_expressions('remove')
 
 searx.plugins.hostnames.high_priority = _load_regular_expressions('high_priority')
 
 searx.plugins.hostnames.low_priority = _load_regular_expressions('low_priority')