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

Go to the source code of this file.

Namespaces

namespace  searx
 
namespace  searx.engines
 ::1337x
 
namespace  searx.engines.mojeek
 

Functions

 searx.engines.mojeek.init (_)
 
 searx.engines.mojeek.request (query, params)
 
 searx.engines.mojeek._general_results (dom)
 
 searx.engines.mojeek._image_results (dom)
 
 searx.engines.mojeek._news_results (dom)
 
 searx.engines.mojeek.response (resp)
 
 searx.engines.mojeek.fetch_traits (EngineTraits engine_traits)
 

Variables

dict searx.engines.mojeek.about
 
bool searx.engines.mojeek.paging = True
 
bool searx.engines.mojeek.safesearch = True
 
bool searx.engines.mojeek.time_range_support = True
 
int searx.engines.mojeek.max_page = 10
 
str searx.engines.mojeek.base_url = "https://www.mojeek.com"
 
list searx.engines.mojeek.categories = ["general", "web"]
 
str searx.engines.mojeek.search_type = ""
 
str searx.engines.mojeek.results_xpath = '//ul[@class="results-standard"]/li/a[@class="ob"]'
 
str searx.engines.mojeek.url_xpath = './@href'
 
str searx.engines.mojeek.title_xpath = '../h2/a'
 
str searx.engines.mojeek.content_xpath = '..//p[@class="s"]'
 
str searx.engines.mojeek.suggestion_xpath = '//div[@class="top-info"]/p[@class="top-info spell"]/em/a'
 
str searx.engines.mojeek.image_results_xpath = '//div[@id="results"]/div[contains(@class, "image")]'
 
str searx.engines.mojeek.image_url_xpath = './a/@href'
 
str searx.engines.mojeek.image_title_xpath = './a/@data-title'
 
str searx.engines.mojeek.image_img_src_xpath = './a/img/@src'
 
str searx.engines.mojeek.news_results_xpath = '//section[contains(@class, "news-search-result")]//article'
 
str searx.engines.mojeek.news_url_xpath = './/h2/a/@href'
 
str searx.engines.mojeek.news_title_xpath = './/h2/a'
 
str searx.engines.mojeek.news_content_xpath = './/p[@class="s"]'
 
str searx.engines.mojeek.language_param = 'lb'
 
str searx.engines.mojeek.region_param = 'arc'
 
dict searx.engines.mojeek._delta_kwargs = {'day': 'days', 'week': 'weeks', 'month': 'months', 'year': 'years'}
 
 searx.engines.mojeek.logger = logging.getLogger()