diff options
Diffstat (limited to 'searx/settings.yml')
| -rw-r--r-- | searx/settings.yml | 439 |
1 files changed, 327 insertions, 112 deletions
diff --git a/searx/settings.yml b/searx/settings.yml index 7eadb0816..2497a764b 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -4,8 +4,10 @@ general: search: safe_search : 0 # Filter results. 0: None, 1: Moderate, 2: Strict - autocomplete : "" # Existing autocomplete backends: "dbpedia", "duckduckgo", "google", "startpage", "wikipedia" - leave blank to turn it off by default - language : "all" + autocomplete : "" # Existing autocomplete backends: "dbpedia", "duckduckgo", "google", "startpage", "swisscows", "qwant", "wikipedia" - leave blank to turn it off by default + default_lang : "" # Default search language - leave blank to detect from browser information or use codes from 'languages.py' + ban_time_on_fail : 5 # ban time in seconds after engine errors + max_ban_time_on_fail : 120 # max ban time in seconds after engine errors server: port : 8888 @@ -20,21 +22,26 @@ ui: templates_path : "" # Custom templates path - leave it blank if you didn't change default_theme : oscar # ui theme default_locale : "" # Default interface locale - leave blank to detect from browser information or use codes from the 'locales' config section + theme_args : + oscar_style : logicodev # default style of oscar # searx supports result proxification using an external service: https://github.com/asciimoo/morty # uncomment below section if you have running morty proxy +# the key is base64 encoded (keep the !!binary notation) +# Note: since commit af77ec3, morty accepts a base64 encoded key. #result_proxy: # url : http://127.0.0.1:3000/ -# key : your_morty_proxy_key +# key : !!binary "your_morty_proxy_key" outgoing: # communication with search engines - request_timeout : 2.0 # seconds + request_timeout : 2.0 # default timeout in seconds, can be override by engine + # max_request_timeout: 10.0 # the maximum timeout in seconds useragent_suffix : "" # suffix of searx_useragent, could contain informations like an email address to the administrator pool_connections : 100 # Number of different hosts pool_maxsize : 10 # Number of simultaneous requests by host # uncomment below section if you want to use a proxy # see http://docs.python-requests.org/en/latest/user/advanced/#proxies -# SOCKS proxies are also supported: see http://docs.python-requests.org/en/master/user/advanced/#socks +# SOCKS proxies are also supported: see http://requests.readthedocs.io/en/master/user/advanced/#socks # proxies : # http : http://127.0.0.1:8080 # https: http://127.0.0.1:8080 @@ -45,6 +52,12 @@ outgoing: # communication with search engines # - 1.1.1.2 engines: + - name: apk mirror + engine: apkmirror + timeout: 4.0 + shortcut: apkm + disabled: True + - name : arch linux wiki engine : archlinux shortcut : al @@ -60,9 +73,16 @@ engines: disabled : True shortcut : ai - - name : base - engine : base - shortcut : bs + - name : arxiv + engine : arxiv + shortcut : arx + categories : science + timeout : 4.0 + +# tmp suspended: dh key too small +# - name : base +# engine : base +# shortcut : bs - name : wikipedia engine : wikipedia @@ -81,6 +101,10 @@ engines: engine : bing_news shortcut : bin + - name : bing videos + engine : bing_videos + shortcut : biv + - name : bitbucket engine : xpath paging : True @@ -93,6 +117,10 @@ engines: disabled : True shortcut : bb + - name : btdigg + engine : btdigg + shortcut : bt + - name : ccc-tv engine : xpath paging : False @@ -107,7 +135,7 @@ engines: - name : crossref engine : json_engine paging : True - search_url : http://search.crossref.org/dois?q={query}&page={pageno} + search_url : https://search.crossref.org/dois?q={query}&page={pageno} url_query : doi title_query : title content_query : fullCitation @@ -134,11 +162,12 @@ engines: weight : 2 disabled : True - - name : digbt - engine : digbt - shortcut : dbt - timeout : 6.0 - disabled : True +# cloudflare protected +# - name : digbt +# engine : digbt +# shortcut : dbt +# timeout : 6.0 +# disabled : True - name : digg engine : digg @@ -160,6 +189,7 @@ engines: - name : wikidata engine : wikidata shortcut : wd + timeout : 3.0 weight : 2 - name : duckduckgo @@ -173,28 +203,22 @@ engines: timeout: 3.0 disabled : True + - name : etools + engine : etools + shortcut : eto + disabled : True + - name : etymonline engine : xpath paging : True - search_url : http://etymonline.com/?search={query}&p={pageno} - url_xpath : //dt/a[1]/@href - title_xpath : //dt - content_xpath : //dd - suggestion_xpath : //a[@class="crossreference"] - first_page_num : 0 + search_url : https://etymonline.com/search?page={pageno}&q={query} + url_xpath : //a[contains(@class, "word__name--")]/@href + title_xpath : //a[contains(@class, "word__name--")] + content_xpath : //section[contains(@class, "word__defination")] + first_page_num : 1 shortcut : et disabled : True -# api-key required: http://www.faroo.com/hp/api/api.html#key -# - name : faroo -# engine : faroo -# shortcut : fa -# api_key : 'apikey' # required! - - - name : 500px - engine : www500px - shortcut : px - - name : 1x engine : www1x shortcut : 1x @@ -232,22 +256,31 @@ engines: shortcut : frk disabled : True + - name : genius + engine : genius + shortcut : gen + - name : gigablast engine : gigablast shortcut : gb timeout : 3.0 disabled: True + - name : gentoo + engine : gentoo + shortcut : ge + - name : gitlab - engine : xpath + engine : json_engine paging : True - search_url : https://gitlab.com/search?page={pageno}&search={query} - url_xpath : //li[@class="project-row"]//a[@class="project"]/@href - title_xpath : //li[@class="project-row"]//span[contains(@class, "project-full-name")] - content_xpath : //li[@class="project-row"]//div[@class="description"]/p + search_url : https://gitlab.com/api/v4/projects?search={query}&page={pageno} + url_query : web_url + title_query : name_with_namespace + content_query : description + page_size : 20 categories : it shortcut : gl - timeout : 5.0 + timeout : 10.0 disabled : True - name : github @@ -274,42 +307,48 @@ engines: engine : xpath paging : True search_url : https://scholar.google.com/scholar?start={pageno}&q={query}&hl=en&as_sdt=0,5&as_vis=1 - results_xpath : //div[@class="gs_r"]/div[@class="gs_ri"] + results_xpath : //div[contains(@class, "gs_r")]/div[@class="gs_ri"] url_xpath : .//h3/a/@href title_xpath : .//h3/a content_xpath : .//div[@class="gs_rs"] - suggestion_xpath : //div[@id="gs_qsuggest"]/ul/li + suggestion_xpath : //div[@id="gs_res_ccl_top"]//a/b page_size : 10 first_page_num : 0 categories : science shortcut : gos - name : google play apps - engine : xpath - search_url : https://play.google.com/store/search?q={query}&c=apps - url_xpath : //a[@class="title"]/@href - title_xpath : //a[@class="title"] - content_xpath : //a[@class="subtitle"] + engine : xpath + search_url : https://play.google.com/store/search?q={query}&c=apps + results_xpath : '//div[@class="WHE7ib mpg5gc"]' + title_xpath : './/div[@class="RZEgze"]//div[@title and not(@title="")]/a' + url_xpath : './/div[@class="RZEgze"]//div[@title and not(@title="")]/a/@href' + content_xpath : './/div[@class="RZEgze"]//a[@class="mnKHRc"]' + thumbnail_xpath : './/div[@class="uzcko"]/div/span[1]//img/@data-src' categories : files shortcut : gpa disabled : True - name : google play movies - engine : xpath - search_url : https://play.google.com/store/search?q={query}&c=movies - url_xpath : //a[@class="title"]/@href - title_xpath : //a[@class="title"]/@title - content_xpath : //a[contains(@class, "subtitle")] + engine : xpath + search_url : https://play.google.com/store/search?q={query}&c=movies + results_xpath : '//div[@class="WHE7ib mpg5gc"]' + title_xpath : './/div[@class="RZEgze"]//div[@title and not(@title="")]/a' + url_xpath : './/div[@class="RZEgze"]//div[@title and not(@title="")]/a/@href' + content_xpath : './/div[@class="RZEgze"]//a[@class="mnKHRc"]' + thumbnail_xpath : './/div[@class="uzcko"]/div/span[1]//img/@data-src' categories : videos shortcut : gpm disabled : True - name : google play music - engine : xpath - search_url : https://play.google.com/store/search?q={query}&c=music - url_xpath : //a[@class="title"]/@href - title_xpath : //a[@class="title"] - content_xpath : //a[@class="subtitle"] + engine : xpath + search_url : https://play.google.com/store/search?q={query}&c=music + results_xpath : '//div[@class="WHE7ib mpg5gc"]' + title_xpath : './/div[@class="RZEgze"]//div[@title and not(@title="")]/a' + url_xpath : './/div[@class="RZEgze"]//div[@title and not(@title="")]/a/@href' + content_xpath : './/div[@class="RZEgze"]//a[@class="mnKHRc"]' + thumbnail_xpath : './/div[@class="uzcko"]/div/span[1]//img/@data-src' categories : music shortcut : gps disabled : True @@ -318,9 +357,9 @@ engines: engine : xpath paging : True search_url : https://geektimes.ru/search/page{pageno}/?q={query} - url_xpath : //div[@class="search_results"]//a[@class="post__title_link"]/@href - title_xpath : //div[@class="search_results"]//a[@class="post__title_link"] - content_xpath : //div[@class="search_results"]//div[contains(@class, "content")] + url_xpath : //article[contains(@class, "post")]//a[@class="post__title_link"]/@href + title_xpath : //article[contains(@class, "post")]//a[@class="post__title_link"] + content_xpath : //article[contains(@class, "post")]//div[contains(@class, "post__text")] categories : it timeout : 4.0 disabled : True @@ -330,9 +369,9 @@ engines: engine : xpath paging : True search_url : https://habrahabr.ru/search/page{pageno}/?q={query} - url_xpath : //div[@class="search_results"]//a[contains(@class, "post__title_link")]/@href - title_xpath : //div[@class="search_results"]//a[contains(@class, "post__title_link")] - content_xpath : //div[@class="search_results"]//div[contains(@class, "content")] + url_xpath : //article[contains(@class, "post")]//a[@class="post__title_link"]/@href + title_xpath : //article[contains(@class, "post")]//a[@class="post__title_link"] + content_xpath : //article[contains(@class, "post")]//div[contains(@class, "post__text")] categories : it timeout : 4.0 disabled : True @@ -356,6 +395,12 @@ engines: timeout : 6.0 disabled : True + - name : invidious + engine : invidious + base_url : 'https://invidio.us/' + shortcut: iv + timeout : 5.0 + - name: kickass engine : kickass shortcut : kc @@ -364,7 +409,7 @@ engines: - name : library genesis engine : xpath - search_url : http://libgen.io/search.php?req={query} + search_url : https://libgen.is/search.php?req={query} url_xpath : //a[contains(@href,"bookfi.net")]/@href title_xpath : //a[contains(@href,"book/")]/text()[1] content_xpath : //td/a[1][contains(@href,"=author")]/text() @@ -384,15 +429,7 @@ engines: shortcut : lo - name : microsoft academic - engine : json_engine - paging : True - search_url : https://academic.microsoft.com/api/search/GetEntityResults?query=%40{query}%40&filters=&offset={pageno}&limit=8&correlationId=undefined - results_query : results - url_query : u - title_query : dn - content_query : d - page_size : 8 - first_page_num : 0 + engine : microsoft_academic categories : science shortcut : ma @@ -400,11 +437,55 @@ engines: engine : mixcloud shortcut : mc + - name : npm + engine : json_engine + paging : True + search_url : https://api.npms.io/v2/search?q={query}&size=25&from={pageno} + results_query : results + url_query : package/links/npm + title_query : package/name + content_query : package/description + page_size : 25 + categories : it + disabled: True + timeout: 5.0 + shortcut : npm + - name : nyaa engine : nyaa shortcut : nt disabled : True + - name : acgsou + engine : acgsou + shortcut : acg + disabled : True + timeout: 5.0 + + - name : openairedatasets + engine : json_engine + paging : True + search_url : https://api.openaire.eu/search/datasets?format=json&page={pageno}&size=10&title={query} + results_query : response/results/result + url_query : metadata/oaf:entity/oaf:result/children/instance/webresource/url/$ + title_query : metadata/oaf:entity/oaf:result/title/$ + content_query : metadata/oaf:entity/oaf:result/description/$ + categories : science + shortcut : oad + timeout: 5.0 + + - name : openairepublications + engine : json_engine + paging : True + search_url : https://api.openaire.eu/search/publications?format=json&page={pageno}&size=10&title={query} + results_query : response/results/result + url_query : metadata/oaf:entity/oaf:result/children/instance/webresource/url/$ + title_query : metadata/oaf:entity/oaf:result/title/$ + content_query : metadata/oaf:entity/oaf:result/description/$ + categories : science + shortcut : oap + timeout: 5.0 + - name : openstreetmap engine : openstreetmap shortcut : osm @@ -438,6 +519,12 @@ engines: url: https://pirateproxy.red/ timeout : 3.0 + - name : pubmed + engine : pubmed + shortcut : pub + categories: science + timeout : 3.0 + - name : qwant engine : qwant shortcut : qw @@ -466,10 +553,11 @@ engines: timeout : 10.0 disabled : True - - name : scanr structures - shortcut: scs - engine : scanr_structures - disabled : True +# tmp suspended: bad certificate +# - name : scanr structures +# shortcut: scs +# engine : scanr_structures +# disabled : True - name : soundcloud engine : soundcloud @@ -512,16 +600,12 @@ engines: shortcut : se categories : science - - name : spotify - engine : spotify - shortcut : stf - - - name : subtitleseeker - engine : subtitleseeker - shortcut : ss -# The language is an option. You can put any language written in english -# Examples : English, French, German, Hungarian, Chinese... -# language : English +# Spotify needs API credentials +# - name : spotify +# engine : spotify +# shortcut : stf +# api_client_id : ******* +# api_client_secret : ******* - name : startpage engine : startpage @@ -529,25 +613,18 @@ engines: timeout : 6.0 disabled : True - - name : ixquick - engine : startpage - base_url : 'https://www.ixquick.eu/' - search_url : 'https://www.ixquick.eu/do/search' - shortcut : iq - timeout : 6.0 - disabled : True - - - name : swisscows - engine : swisscows - shortcut : sw - disabled : True - - name : tokyotoshokan engine : tokyotoshokan shortcut : tt timeout : 6.0 disabled : True + - name : torrentz + engine : torrentz + shortcut : tor + url: https://torrentz2.eu/ + timeout : 3.0 + - name : twitter engine : twitter shortcut : tw @@ -568,9 +645,15 @@ engines: # content_xpath : //*[@class="meaning"] # shortcut : ud + - name : unsplash + engine : unsplash + disabled: True + shortcut : us + - name : yahoo engine : yahoo shortcut : yh + disabled : True - name : yandex engine : yandex @@ -598,6 +681,69 @@ engines: engine : vimeo shortcut : vm + - name : wikibooks + engine : mediawiki + shortcut : wb + categories : general + base_url : "https://{language}.wikibooks.org/" + number_of_results : 5 + search_type : text + disabled : True + + - name : wikinews + engine : mediawiki + shortcut : wn + categories : news + base_url : "https://{language}.wikinews.org/" + number_of_results : 5 + search_type : text + disabled : True + + - name : wikiquote + engine : mediawiki + shortcut : wq + categories : general + base_url : "https://{language}.wikiquote.org/" + number_of_results : 5 + search_type : text + disabled : True + + - name : wikisource + engine : mediawiki + shortcut : ws + categories : general + base_url : "https://{language}.wikisource.org/" + number_of_results : 5 + search_type : text + disabled : True + + - name : wiktionary + engine : mediawiki + shortcut : wt + categories : general + base_url : "https://{language}.wiktionary.org/" + number_of_results : 5 + search_type : text + disabled : True + + - name : wikiversity + engine : mediawiki + shortcut : wv + categories : general + base_url : "https://{language}.wikiversity.org/" + number_of_results : 5 + search_type : text + disabled : True + + - name : wikivoyage + engine : mediawiki + shortcut : wy + categories : general + base_url : "https://{language}.wikivoyage.org/" + number_of_results : 5 + search_type : text + disabled : True + - name : wolframalpha shortcut : wa # You can use the engine using the official stable API, but you need an API key @@ -608,12 +754,6 @@ engines: timeout: 6.0 categories : science - - name : seedpeer - engine : seedpeer - shortcut: speu - categories: files, music, videos - disabled: True - - name : dictzone engine : dictzone shortcut : dc @@ -631,10 +771,10 @@ engines: engine: xpath shortcut: vo categories: social media - search_url : https://voat.co/search?q={query} - url_xpath : //p[contains(@class, "title")]/a/@href - title_xpath : //p[contains(@class, "title")]/a - content_xpath : //span[@class="domain"] + search_url : https://searchvoat.co/?t={query} + url_xpath : //div[@class="entry"]//p[@class="title"]/a/@href + title_xpath : //div[@class="entry"]//p[@class="title"]/a/text() + content_xpath : //div[@class="entry"]//span[@class="domain"]/a/text() timeout : 10.0 disabled : True @@ -643,11 +783,57 @@ engines: shortcut : 1337x disabled : True -#The blekko technology and team have joined IBM Watson! -> https://blekko.com/ -# - name : blekko images -# engine : blekko_images -# locale : en-US -# shortcut : bli + - name : duden + engine : duden + shortcut : du + disabled : True + + - name : seznam + shortcut: szn + engine: xpath + paging : True + search_url : https://search.seznam.cz/?q={query}&count=10&from={pageno} + results_xpath: //div[@class="Page-content"]//div[contains(@class, "Result ")] + url_xpath : ./h3/a/@href + title_xpath : ./h3 + content_xpath : .//p[@class="Result-description"] + suggestion_xpath: //div[@class="Related-container"]//div[@class="RelatedItem"]/div/span/a + first_page_num : 0 + page_size : 10 + disabled : True + + - name : mojeek + shortcut: mjk + engine: xpath + paging : True + search_url : https://www.mojeek.com/search?q={query}&s={pageno} + results_xpath: /html/body//div[@class="results"]/ul[@class="results-standard"]/li + url_xpath : ./h2/a/@href + title_xpath : ./h2 + content_xpath : ./p[@class="s"] + suggestion_xpath : /html/body//div[@class="top-info"]/p[@class="top-info spell"]/a + first_page_num : 0 + page_size : 10 + disabled : True + + - name : seedpeer + shortcut : speu + engine : seedpeer + categories: files, music, videos + + - name : rubygems + shortcut: rbg + engine: xpath + paging : True + search_url : https://rubygems.org/search?page={pageno}&query={query} + results_xpath: /html/body/main/div/a[@class="gems__gem"] + url_xpath : ./@href + title_xpath : ./span/h2 + content_xpath : ./span/p + suggestion_xpath : /html/body/main/div/div[@class="search__suggestions"]/p/a + first_page_num : 1 + categories: it + disabled : True # - name : yacy # engine : yacy @@ -665,26 +851,55 @@ engines: locales: en : English + ar : العَرَبِيَّة (Arabic) bg : Български (Bulgarian) + bo : བོད་སྐད་ (Tibetian) + ca : Català (Catalan) cs : Čeština (Czech) + cy : Cymraeg (Welsh) + da : Dansk (Danish) de : Deutsch (German) - de_DE : Deutsch (German_Germany) el_GR : Ελληνικά (Greek_Greece) eo : Esperanto (Esperanto) es : Español (Spanish) + et : Eesti (Estonian) + eu : Euskara (Basque) + fa_IR : (fārsī) فارسى (Persian) fi : Suomi (Finnish) + fil : Wikang Filipino (Filipino) fr : Français (French) + gl : Galego (Galician) he : עברית (Hebrew) + hr : Hrvatski (Croatian) hu : Magyar (Hungarian) + ia : Interlingua (Interlingua) it : Italiano (Italian) ja : 日本語 (Japanese) + lt : Lietuvių (Lithuanian) nl : Nederlands (Dutch) + nl_BE : Vlaams (Dutch_Belgium) + oc : Lenga D'òc (Occitan) + pl : Polski (Polish) pt : Português (Portuguese) pt_BR : Português (Portuguese_Brazil) ro : Română (Romanian) ru : Русский (Russian) sk : Slovenčina (Slovak) + sl : Slovenski (Slovene) + sr : српски (Serbian) sv : Svenska (Swedish) + te : తెలుగు (telugu) + ta : தமிழ் (Tamil) tr : Türkçe (Turkish) uk : українська мова (Ukrainian) + vi : tiếng việt (Vietnamese) zh : 中文 (Chinese) + zh_TW : 國語 (Taiwanese Mandarin) + +doi_resolvers : + oadoi.org : 'https://oadoi.org/' + doi.org : 'https://doi.org/' + doai.io : 'https://doai.io/' + sci-hub.tw : 'https://sci-hub.tw/' + +default_doi_resolver : 'oadoi.org' |