mirror of https://github.com/searx/searx
Merge branch 'master' into diskutils-version-to-packaging
This commit is contained in:
commit
4bc17286ff
|
@ -85,8 +85,8 @@ of turning it off.
|
||||||
What is the difference between searx and SearxNG?
|
What is the difference between searx and SearxNG?
|
||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
TL;DR: If you want to run a public instance, go with SearxNG. If you want to
|
TL;DR: SearXNG is for users that want more features and bugs getting fixed quicker.
|
||||||
self host your own instance, choose searx.
|
If you prefer a minimalist software and stable experience, use searx.
|
||||||
|
|
||||||
SearxNG is a fork of searx, created by a former maintainer of searx. The fork
|
SearxNG is a fork of searx, created by a former maintainer of searx. The fork
|
||||||
was created because the majority of the maintainers at the time did not find
|
was created because the majority of the maintainers at the time did not find
|
||||||
|
|
3
manage
3
manage
|
@ -284,9 +284,6 @@ node.env() {
|
||||||
which npm &> /dev/null || die 1 'node.env - npm is not found!'
|
which npm &> /dev/null || die 1 'node.env - npm is not found!'
|
||||||
|
|
||||||
( set -e
|
( set -e
|
||||||
# shellcheck disable=SC2030
|
|
||||||
PATH="$(npm bin):$PATH"
|
|
||||||
export PATH
|
|
||||||
|
|
||||||
build_msg INSTALL "npm install $NPM_PACKAGES"
|
build_msg INSTALL "npm install $NPM_PACKAGES"
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
|
|
|
@ -52,8 +52,7 @@ def request(query, params):
|
||||||
offset=offset)
|
offset=offset)
|
||||||
|
|
||||||
params['url'] = base_url + search_path
|
params['url'] = base_url + search_path
|
||||||
params['headers']['User-Agent'] = ('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 '
|
params['headers']['Accept'] = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
|
||||||
'(KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36')
|
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
|
@ -112,7 +112,7 @@ filter_mapping = {
|
||||||
results_xpath = '//div[contains(@class, "MjjYud")]'
|
results_xpath = '//div[contains(@class, "MjjYud")]'
|
||||||
title_xpath = './/h3[1]'
|
title_xpath = './/h3[1]'
|
||||||
href_xpath = './/a/@href'
|
href_xpath = './/a/@href'
|
||||||
content_xpath = './/div[@data-content-feature=1]'
|
content_xpath = './/div[@data-sncf]'
|
||||||
results_xpath_mobile_ui = '//div[contains(@class, "g ")]'
|
results_xpath_mobile_ui = '//div[contains(@class, "g ")]'
|
||||||
|
|
||||||
# google *sections* are no usual *results*, we ignore them
|
# google *sections* are no usual *results*, we ignore them
|
||||||
|
|
|
@ -1291,7 +1291,7 @@ engines:
|
||||||
- name : wiby
|
- name : wiby
|
||||||
engine : json_engine
|
engine : json_engine
|
||||||
paging : True
|
paging : True
|
||||||
search_url : https://wiby.me/json/?q={query}&o={pageno}0
|
search_url : https://wiby.me/json/?q={query}&p={pageno}
|
||||||
url_query : URL
|
url_query : URL
|
||||||
title_query : Title
|
title_query : Title
|
||||||
content_query : Snippet
|
content_query : Snippet
|
||||||
|
|
Loading…
Reference in New Issue