.oO SearXNG Developer Documentation Oo.
|
Functions | |
init (_) | |
request (query, params) | |
_general_results (dom) | |
_image_results (dom) | |
_news_results (dom) | |
response (resp) | |
fetch_traits (EngineTraits engine_traits) | |
Variables | |
dict | about |
bool | paging = True |
bool | safesearch = True |
bool | time_range_support = True |
int | max_page = 10 |
str | base_url = "https://www.mojeek.com" |
list | categories = ["general", "web"] |
str | search_type = "" |
str | results_xpath = '//ul[@class="results-standard"]/li/a[@class="ob"]' |
str | url_xpath = './@href' |
str | title_xpath = '../h2/a' |
str | content_xpath = '..//p[@class="s"]' |
str | suggestion_xpath = '//div[@class="top-info"]/p[@class="top-info spell"]/em/a' |
str | image_results_xpath = '//div[@id="results"]/div[contains(@class, "image")]' |
str | image_url_xpath = './a/@href' |
str | image_title_xpath = './a/@data-title' |
str | image_img_src_xpath = './a/img/@src' |
str | news_results_xpath = '//section[contains(@class, "news-search-result")]//article' |
str | news_url_xpath = './/h2/a/@href' |
str | news_title_xpath = './/h2/a' |
str | news_content_xpath = './/p[@class="s"]' |
str | language_param = 'lb' |
str | region_param = 'arc' |
dict | _delta_kwargs = {'day': 'days', 'week': 'weeks', 'month': 'months', 'year': 'years'} |
logger = logging.getLogger() | |
Mojeek (general, images, news)
|
protected |
Definition at line 88 of file mojeek.py.
Referenced by searx.engines.mojeek.response().
|
protected |
Definition at line 106 of file mojeek.py.
Referenced by searx.engines.mojeek.response().
|
protected |
Definition at line 123 of file mojeek.py.
Referenced by searx.engines.mojeek.response().
searx.engines.mojeek.fetch_traits | ( | EngineTraits | engine_traits | ) |
Definition at line 153 of file mojeek.py.
searx.engines.mojeek.init | ( | _ | ) |
searx.engines.mojeek.request | ( | query, | |
params ) |
Definition at line 66 of file mojeek.py.
searx.engines.mojeek.response | ( | resp | ) |
Definition at line 138 of file mojeek.py.
References searx.engines.mojeek._general_results(), searx.engines.mojeek._image_results(), and searx.engines.mojeek._news_results().
|
protected |
dict searx.engines.mojeek.about |
str searx.engines.mojeek.base_url = "https://www.mojeek.com" |
str searx.engines.mojeek.content_xpath = '..//p[@class="s"]' |
str searx.engines.mojeek.image_img_src_xpath = './a/img/@src' |
str searx.engines.mojeek.image_results_xpath = '//div[@id="results"]/div[contains(@class, "image")]' |
str searx.engines.mojeek.image_title_xpath = './a/@data-title' |
str searx.engines.mojeek.news_content_xpath = './/p[@class="s"]' |
str searx.engines.mojeek.news_results_xpath = '//section[contains(@class, "news-search-result")]//article' |
str searx.engines.mojeek.results_xpath = '//ul[@class="results-standard"]/li/a[@class="ob"]' |
str searx.engines.mojeek.suggestion_xpath = '//div[@class="top-info"]/p[@class="top-info spell"]/em/a' |