.oO SearXNG Developer Documentation Oo.
|
::1337x More...
Namespaces | |
namespace | 1337x |
namespace | 9gag |
namespace | ahmia |
namespace | alpinelinux |
namespace | annas_archive |
namespace | apkmirror |
namespace | apple_app_store |
namespace | apple_maps |
namespace | archlinux |
namespace | artic |
namespace | arxiv |
namespace | ask |
namespace | bandcamp |
namespace | base |
namespace | bilibili |
namespace | bing |
namespace | bing_images |
namespace | bing_news |
namespace | bing_videos |
namespace | bpb |
namespace | brave |
namespace | bt4g |
namespace | btdigg |
namespace | ccc_media |
namespace | chefkoch |
namespace | cloudflareai |
namespace | command |
namespace | core |
namespace | cppreference |
namespace | crates |
namespace | crossref |
namespace | currency_convert |
namespace | dailymotion |
namespace | deepl |
namespace | deezer |
namespace | demo_offline |
namespace | demo_online |
namespace | destatis |
namespace | deviantart |
namespace | dictzone |
namespace | digbt |
namespace | discourse |
namespace | docker_hub |
namespace | doku |
namespace | duckduckgo |
namespace | duckduckgo_definitions |
namespace | duckduckgo_extra |
namespace | duckduckgo_weather |
namespace | duden |
namespace | dummy |
-offline | |
namespace | dummy-offline |
namespace | ebay |
namespace | elasticsearch |
namespace | emojipedia |
namespace | fdroid |
namespace | findthatmeme |
namespace | flickr |
namespace | flickr_noapi |
namespace | freesound |
namespace | frinkiac |
namespace | fyyd |
namespace | geizhals |
namespace | genius |
namespace | gitea |
namespace | github |
namespace | gitlab |
namespace | goodreads |
namespace | |
namespace | google_images |
namespace | google_news |
namespace | google_play |
namespace | google_scholar |
namespace | google_videos |
namespace | hackernews |
namespace | hex |
namespace | imdb |
namespace | imgur |
namespace | ina |
namespace | internet_archive_scholar |
namespace | invidious |
namespace | jisho |
namespace | json_engine |
namespace | kickass |
namespace | lemmy |
namespace | lib_rs |
namespace | libretranslate |
namespace | lingva |
namespace | livespace |
namespace | loc |
namespace | mariadb_server |
namespace | mastodon |
namespace | material_icons |
namespace | mediathekviewweb |
namespace | mediawiki |
namespace | meilisearch |
namespace | metacpan |
namespace | mixcloud |
namespace | mojeek |
namespace | mongodb |
namespace | moviepilot |
namespace | mozhi |
namespace | mrs |
namespace | mullvad_leta |
namespace | mwmbl |
namespace | mysql_server |
namespace | npm |
namespace | nyaa |
namespace | odysee |
namespace | open_meteo |
namespace | openlibrary |
namespace | opensemantic |
namespace | openstreetmap |
namespace | openverse |
namespace | pdbe |
namespace | peertube |
namespace | photon |
namespace | |
namespace | piped |
namespace | piratebay |
namespace | pixiv |
namespace | pkg_go_dev |
namespace | podcastindex |
namespace | postgresql |
namespace | presearch |
namespace | pubmed |
namespace | pypi |
namespace | qwant |
namespace | radio_browser |
namespace | recoll |
namespace | |
namespace | redis_server |
namespace | rottentomatoes |
namespace | rumble |
namespace | scanr_structures |
namespace | searchcode_code |
namespace | searx_engine |
namespace | seekr |
namespace | semantic_scholar |
namespace | sepiasearch |
namespace | seznam |
namespace | sjp |
namespace | solidtorrents |
namespace | solr |
namespace | soundcloud |
namespace | spotify |
namespace | springer |
namespace | sqlite |
namespace | stackexchange |
namespace | startpage |
namespace | stract |
namespace | svgrepo |
namespace | tagesschau |
namespace | tineye |
namespace | tokyotoshokan |
namespace | tootfinder |
namespace | torznab |
namespace | translated |
namespace | unsplash |
namespace | vimeo |
namespace | voidlinux |
namespace | wallhaven |
namespace | wikicommons |
namespace | wikidata |
namespace | wikipedia |
namespace | wolframalpha_api |
namespace | wolframalpha_noapi |
namespace | wordnik |
namespace | wttr |
namespace | www1x |
namespace | xpath |
namespace | yacy |
namespace | yahoo |
namespace | yahoo_news |
namespace | yandex |
namespace | yandex_music |
namespace | yep |
namespace | youtube_api |
namespace | youtube_noapi |
namespace | yummly |
namespace | zlibrary |
Functions | |
check_engine_module (types.ModuleType module) | |
Engine|types.ModuleType|None | load_engine (dict engine_data) |
set_loggers (engine, engine_name) | |
update_engine_attributes (Engine|types.ModuleType engine, engine_data) | |
update_attributes_for_tor (Engine|types.ModuleType engine) | |
is_missing_required_attributes (engine) | |
using_tor_proxy (Engine|types.ModuleType engine) | |
is_engine_active (Engine|types.ModuleType engine) | |
register_engine (Engine|types.ModuleType engine) | |
load_engines (engine_list) | |
Variables | |
logger = logger.getChild('engines') | |
ENGINE_DIR = dirname(realpath(__file__)) | |
dict | ENGINE_DEFAULT_ARGS |
str | DEFAULT_CATEGORY = 'other' |
dict | categories = {'general': []} |
dict | engines = {} |
dict | engine_shortcuts = {} |
::1337x
::9gag
1337x
9GAG (social media)
Load and initialize the ``engines``, see :py:func:`load_engines` and register :py:obj:`engine_shortcuts`. usage:: load_engines( settings['engines'] )
searx.engines.check_engine_module | ( | types.ModuleType | module | ) |
Definition at line 68 of file __init__.py.
Referenced by searx.engines.load_engine().
searx.engines.is_engine_active | ( | Engine | types.ModuleType | engine | ) |
Definition at line 216 of file __init__.py.
References searx.engines.using_tor_proxy().
Referenced by searx.engines.load_engine().
searx.engines.is_missing_required_attributes | ( | engine | ) |
An attribute is required when its name doesn't start with ``_`` (underline). Required attributes must not be ``None``.
Definition at line 198 of file __init__.py.
References searx.format.
Referenced by searx.engines.load_engine().
Engine | types.ModuleType | None searx.engines.load_engine | ( | dict | engine_data | ) |
Load engine from ``engine_data``. :param dict engine_data: Attributes from YAML ``settings:engines/<engine>`` :return: initialized namespace of the ``<engine>``. 1. create a namespace and load module of the ``<engine>`` 2. update namespace with the defaults from :py:obj:`ENGINE_DEFAULT_ARGS` 3. update namespace with values from ``engine_data`` If engine *is active*, return namespace of the engine, otherwise return ``None``. This function also returns ``None`` if initialization of the namespace fails for one of the following reasons: - engine name contains underscore - engine name is not lowercase - required attribute is not set :py:func:`is_missing_required_attributes`
Definition at line 80 of file __init__.py.
References searx.engines.check_engine_module(), searx.format, searx.engines.is_engine_active(), searx.engines.is_missing_required_attributes(), searx.engines.set_loggers(), searx.engines.update_attributes_for_tor(), and searx.engines.update_engine_attributes().
Referenced by searx.engines.load_engines().
searx.engines.load_engines | ( | engine_list | ) |
usage: ``engine_list = settings['engines']``
Definition at line 243 of file __init__.py.
References searx.engines.load_engine(), and searx.engines.register_engine().
searx.engines.register_engine | ( | Engine | types.ModuleType | engine | ) |
Definition at line 228 of file __init__.py.
References searx.format.
Referenced by searx.engines.load_engines().
searx.engines.set_loggers | ( | engine, | |
engine_name ) |
Definition at line 155 of file __init__.py.
Referenced by searx.engines.load_engine().
searx.engines.update_attributes_for_tor | ( | Engine | types.ModuleType | engine | ) |
Definition at line 192 of file __init__.py.
References searx.engines.using_tor_proxy().
Referenced by searx.engines.load_engine().
searx.engines.update_engine_attributes | ( | Engine | types.ModuleType | engine, |
engine_data ) |
Definition at line 174 of file __init__.py.
Referenced by searx.engines.load_engine().
searx.engines.using_tor_proxy | ( | Engine | types.ModuleType | engine | ) |
Return True if the engine configuration declares to use Tor.
Definition at line 211 of file __init__.py.
Referenced by searx.engines.is_engine_active(), and searx.engines.update_attributes_for_tor().
dict searx.engines.categories = {'general': []} |
Definition at line 55 of file __init__.py.
str searx.engines.DEFAULT_CATEGORY = 'other' |
Definition at line 50 of file __init__.py.
dict searx.engines.ENGINE_DEFAULT_ARGS |
Definition at line 29 of file __init__.py.
searx.engines.ENGINE_DIR = dirname(realpath(__file__)) |
Definition at line 28 of file __init__.py.
dict searx.engines.engine_shortcuts = {} |
Definition at line 57 of file __init__.py.
dict searx.engines.engines = {} |
Definition at line 56 of file __init__.py.
searx.engines.logger = logger.getChild('engines') |
Definition at line 27 of file __init__.py.