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
Marc Abonce Seguin 9b6ffed061 fix fetch_languages for bing
Bing has a list of regions that it supports and some of these regions
may have more than one possible language.

In some cases, like Switzerland, these languages are always shown as
options, so there is no issue. But in other cases, like Andorra, Bing
will only show one language at the time, either the region's default or
the request's language if the latter is supported by that region.

For example, if the HTTP request is in French, Andorra will appear as
fr-AD but if the same page is requested in any other language Andorra
will appear as ca-AD.

This is specially a problem when Bing assumes that the request is in
English because it overrides enough language codes to make several major
languages like Arabic dissappear from the languages.py file.

To avoid that issue, I set the Accept-Language header to a language
that's only supported in one region to hopefully avoid these overrides.
4 years ago
.github data-update.yml: on PR per file 4 years ago
dockerfiles [enh] add searx.shared 4 years ago
docs [fix] duckduckgo engine: "!ddg !g" do not redirect to google 4 years ago
examples Fix whitespaces 8 years ago
searx fix fetch_languages for bing 4 years ago
tests [mod] add utils/fetch_external_bangs.py 4 years ago
utils [mod] add utils/fetch_external_bangs.py 4 years ago
.codecov.yml codecov : update the commit status 7 years ago
.config.sh [mod] utils/searx.sh install: create branch if not already exists 4 years ago
.coveragerc [mod] use github actions instead of travis 4 years ago
.dir-locals.el [mod] remove obsolete virtualenv command 4 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
.landscape.yaml Add landscape.io configuration 10 years ago
.pylintrc [mod] pylint: add extension-pkg-whitelist=lxml.etree 4 years ago
AUTHORS.rst Updated webutils.highlight_content to ignore double-quotes when highlighting query parts 4 years ago
CHANGELOG.rst prepare release 0.18.0 4 years ago
CONTRIBUTING.md [mod] documentations & comments: update http://* URL to https://*. 4 years ago
Dockerfile [enh] add checker 4 years ago
LICENSE [fix] full AGPLv3+ license according to #382 9 years ago
Makefile [mod] add utils/fetch_external_bangs.py 4 years ago
PULL_REQUEST_TEMPLATE.md Add PR template and contribution guidelines 4 years ago
README.rst [fix] migration from github.com/asciimoo/searx to github.com/searx/searx : fix URLs 4 years ago
babel.cfg [enh] babel.cfg added 11 years ago
manage.sh [mod] get rid of searx/brand.py 4 years ago
requirements-dev.txt Bump sphinx from 3.4.1 to 3.5.1 4 years ago
requirements.txt Bump pyyaml from 5.3.1 to 5.4.1 4 years ago
setup.py [enh] checker: background check 4 years ago
tox.ini [enh] tox.ini added to rewrite standard pep8 rules 10 years ago

README.rst

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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

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

-------

|searx install|
|searx homepage|
|searx wiki|
|AGPL License|
|Issues|
|commits|
|OpenCollective searx backers|
|OpenCollective searx sponsors|

Privacy-respecting, hackable `metasearch engine`_ / *pronunciation* **səːks**.

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

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

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

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

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

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

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

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

.. |OpenCollective searx backers| image:: https://opencollective.com/searx/backers/badge.svg
   :target: https://opencollective.com/searx#backer

.. |OpenCollective searx sponsors| image:: https://opencollective.com/searx/sponsors/badge.svg
   :target: https://opencollective.com/searx#sponsor


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://searx.github.io/searx/user
.. _admin: https://searx.github.io/searx/admin
.. _developer: https://searx.github.io/searx/dev
.. _homepage: https://searx.github.io/searx

contact:
  openhub_ // twitter_ // IRC: #searx @ freenode

.. _openhub: https://www.openhub.net/p/searx
.. _twitter: https://twitter.com/Searx_engine

-------

|gluten free|

.. |gluten free| image:: https://forthebadge.com/images/featured/featured-gluten-free.svg