You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
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
3 years ago
.github Update data-update.yml 3 years ago
dockerfiles [mod] docker-entrypoint.sh - add script to make test.sh (shellcheck) 3 years ago
docs [fix] section "Overrides" in engine's documentation 3 years ago
examples Fix whitespaces 8 years ago
searx [enh] google engine: supports "default language" 3 years ago
searx_extra [pylint] searx_extra/update/update_osm_keys_tags.py 3 years ago
tests [yamllint] tests/unit/settings/user_settings_remove2.yml 3 years ago
utils [enh] add settings option to enable/disable search formats 3 years ago
.config.sh [filtron.sh] make filtron rule file configurable 3 years ago
.coveragerc [mod] use github actions instead of travis 4 years ago
.dir-locals.el [emacs] flycheck - activate yamllint and use .yamllint.yml 3 years ago
.dockerignore [enh] update documentation about docker 4 years ago
.gitattributes [enh] add simple theme (WIP) 7 years ago
.gitignore [enh] Add onions category with Ahmia, Not Evil and Torch 4 years ago
.pylintrc [mod] pylint: add extension-pkg-whitelist=lxml.etree 4 years ago
.yamllint.yml [enh] add test.yamllint - lint yaml files 3 years ago
AUTHORS.rst [brand] searxng -- fix links to issue tracker & WEB-GUI 3 years ago
CHANGELOG.rst [brand] searxng -- fix links to issue tracker & WEB-GUI 3 years ago
CONTRIBUTING.md [brand] searxng -- fix links to issue tracker & WEB-GUI 3 years ago
Dockerfile [brand] Dockerfile default INSTANCE_NAME=searxng 3 years ago
LICENSE [fix] full AGPLv3+ license according to #382 9 years ago
Makefile [data.all] add searx_extra/update/update_osm_keys_tags.py 3 years ago
PULL_REQUEST_TEMPLATE.md Add PR template and contribution guidelines 4 years ago
README.rst [brand] README.rst fix img.shields.io and searxng.github.io URLs 3 years ago
babel.cfg [enh] babel.cfg added 11 years ago
manage [data.all] add searx_extra/update/update_osm_keys_tags.py 3 years ago
requirements-dev.txt [enh] add test.yamllint - lint yaml files 3 years ago
requirements.txt Bump certifi from 2020.12.05 to 2021.5.30 3 years ago
setup.py Add searx_extra package 3 years ago

README.rst

.. SPDX-License-Identifier: AGPL-3.0-or-later

.. figure:: https://raw.githubusercontent.com/searxng/searxng/master/searx/static/themes/oscar/img/logo_searx_a.png
   :target: https://searxng.github.io/searxng/
   :alt: searXNG
   :width: 100%
   :align: center

-------

|searx install|
|searx homepage|
|searx wiki|
|AGPL License|
|Issues|
|commits|

Privacy-respecting, hackable `metasearch engine`_

.. _metasearch engine: https://en.wikipedia.org/wiki/Metasearch_engine

.. |searx install| image:: https://img.shields.io/badge/-install-blue
   :target: https://searxng.github.io/searxng/admin/installation.html

.. |searx homepage| image:: https://img.shields.io/badge/-homepage-blue
   :target: https://searxng.github.io/searxng

.. |searx wiki| image:: https://img.shields.io/badge/-wiki-blue
   :target: https://github.com/searxng/searxng/wiki

.. |AGPL License|  image:: https://img.shields.io/badge/license-AGPL-blue.svg
   :target: https://github.com/searxng/searxng/blob/master/LICENSE

.. |Issues| image:: https://img.shields.io/github/issues/searxng/searxng?color=yellow&label=issues
   :target: https://github.com/searxng/searxng/issues

.. |PR| image:: https://img.shields.io/github/issues-pr-raw/searxng/searxng?color=yellow&label=PR
   :target: https://github.com/searxng/searxng/pulls

.. |commits| image:: https://img.shields.io/github/commit-activity/y/searxng/searxng?color=yellow&label=commits
   :target: https://github.com/searxng/searxng/commits/master


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_.

.. _searx.space: https://searx.space
.. _user: https://searxng.github.io/searxng/user
.. _admin: https://searxng.github.io/searxng/admin
.. _developer: https://searxng.github.io/searxng/dev
.. _homepage: https://searxng.github.io/searxng