Rebrand Zaclys for SearXNG
Go to file
Alexandre Flament 1c67b6aece [enh] google engine: supports "default language"
Same behaviour behaviour than Whoogle [1].  Only the google engine with the
"Default language" choice "(all)"" is changed by this patch.

When searching for a locate place, the result are in the expect language,
without missing results [2]:

  > When a language is not specified, the language interpretation is left up to
  > Google to decide how the search results should be delivered.

The query parameters are copied from Whoogle.  With the ``all`` language:

- add parameter ``source=lnt``
- don't use parameter ``lr``
- don't add a ``Accept-Language`` HTTP header.

The new signature of function ``get_lang_info()`` is:

    lang_info = get_lang_info(params, lang_list, custom_aliases, supported_any_language)

Argument ``supported_any_language`` is True for google.py and False for the other
google engines.  With this patch the function now returns:

- query parameters: ``lang_info['params']``
- HTTP headers: ``lang_info['headers']``
- and as before this patch:
  - ``lang_info['subdomain']``
  - ``lang_info['country']``
  - ``lang_info['language']``

[1] https://github.com/benbusby/whoogle-search
[2] https://github.com/benbusby/whoogle-search/releases/tag/v0.5.4
2021-06-10 10:22:01 +02:00
.github Update data-update.yml 2021-05-01 10:21:27 +02:00
dockerfiles [mod] docker-entrypoint.sh - add script to make test.sh (shellcheck) 2021-05-17 12:02:24 +02:00
docs [fix] section "Overrides" in engine's documentation 2021-06-09 15:16:59 +02:00
examples Fix whitespaces 2016-07-11 18:52:37 +07:00
searx [enh] google engine: supports "default language" 2021-06-10 10:22:01 +02:00
searx_extra [pylint] searx_extra/update/update_osm_keys_tags.py 2021-06-09 18:08:23 +02:00
tests [yamllint] tests/unit/settings/user_settings_remove2.yml 2021-06-05 17:41:24 +02:00
utils [enh] add settings option to enable/disable search formats 2021-05-28 08:32:52 +02:00
.config.sh [filtron.sh] make filtron rule file configurable 2021-04-28 12:48:49 +02:00
.coveragerc [mod] use github actions instead of travis 2020-11-17 15:09:06 +01:00
.dir-locals.el [emacs] flycheck - activate yamllint and use .yamllint.yml 2021-06-05 17:42:06 +02:00
.dockerignore [enh] update documentation about docker 2020-07-22 14:58:04 +02:00
.gitattributes [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00
.gitignore [enh] Add onions category with Ahmia, Not Evil and Torch 2020-10-25 17:59:05 -07:00
.pylintrc [mod] pylint: add extension-pkg-whitelist=lxml.etree 2020-11-02 15:55:19 +01:00
.yamllint.yml [enh] add test.yamllint - lint yaml files 2021-06-05 17:41:24 +02:00
AUTHORS.rst [brand] searxng -- fix links to issue tracker & WEB-GUI 2021-04-25 14:25:08 +02:00
babel.cfg [enh] babel.cfg added 2014-01-22 00:15:42 +01:00
CHANGELOG.rst [brand] searxng -- fix links to issue tracker & WEB-GUI 2021-04-25 14:25:08 +02:00
CONTRIBUTING.md [brand] searxng -- fix links to issue tracker & WEB-GUI 2021-04-25 14:25:08 +02:00
Dockerfile [brand] Dockerfile default INSTANCE_NAME=searxng 2021-05-17 12:02:24 +02:00
LICENSE [fix] full AGPLv3+ license according to #382 2015-07-04 18:23:54 +02:00
Makefile [data.all] add searx_extra/update/update_osm_keys_tags.py 2021-06-09 18:08:23 +02:00
manage [data.all] add searx_extra/update/update_osm_keys_tags.py 2021-06-09 18:08:23 +02:00
PULL_REQUEST_TEMPLATE.md Add PR template and contribution guidelines 2020-07-10 17:10:02 +02:00
README.rst [brand] README.rst fix img.shields.io and searxng.github.io URLs 2021-04-26 15:47:56 +02:00
requirements-dev.txt [enh] add test.yamllint - lint yaml files 2021-06-05 17:41:24 +02:00
requirements.txt Bump certifi from 2020.12.05 to 2021.5.30 2021-06-04 06:05:25 +00:00
setup.py Add searx_extra package 2021-03-04 11:59:14 +01:00


searx install searx homepage searx wiki AGPL License Issues commits

Privacy-respecting, hackable metasearch engine

If you are looking for running instances, ready to use, then visit searx.space.

Otherwise jump to the user, admin and developer handbooks you will find on our homepage.