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.
searxng/searx/engines
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
..
1337x.py [mod] the bittorent search engines are available only in the files category 3 years ago
__init__.py [fix] sys.exit(1) when there is duplicate engine name 3 years ago
ahmia.py
apkmirror.py [pylint] tag PYLINT_FILES by comment `# lint: pylint` 3 years ago
archlinux.py
artic.py [pylint] tag PYLINT_FILES by comment `# lint: pylint` 3 years ago
arxiv.py
bandcamp.py
base.py
bing.py
bing_images.py
bing_news.py
bing_videos.py
btdigg.py [mod] the bittorent search engines are available only in the files category 3 years ago
ccengine.py
command.py
core.py [pylint] tag PYLINT_FILES by comment `# lint: pylint` 3 years ago
currency_convert.py
dailymotion.py
deezer.py
demo_offline.py [docs] add engine "Demo Offline Engine" 3 years ago
demo_online.py [docs] add engine "Demo Online Engine" 3 years ago
deviantart.py [pylint] tag PYLINT_FILES by comment `# lint: pylint` 3 years ago
dictzone.py [fix] typo: online_dictionnary --> online_dictionary 3 years ago
digbt.py
digg.py [pylint] tag PYLINT_FILES by comment `# lint: pylint` 3 years ago
docker_hub.py [enh] add engine - Docker Hub 3 years ago
doku.py
duckduckgo.py
duckduckgo_definitions.py
duckduckgo_images.py
duden.py
dummy-offline.py
dummy.py
ebay.py
elasticsearch.py
etools.py
fdroid.py
flickr.py
flickr_noapi.py
framalibre.py
freesound.py
frinkiac.py
genius.py [fix] engine genius should not use the video template 3 years ago
gentoo.py
gigablast.py [pylint] tag PYLINT_FILES by comment `# lint: pylint` 3 years ago
github.py
google.py [enh] google engine: supports "default language" 3 years ago
google_images.py [enh] google engine: supports "default language" 3 years ago
google_news.py [enh] google engine: supports "default language" 3 years ago
google_scholar.py [enh] google engine: supports "default language" 3 years ago
google_videos.py [enh] google engine: supports "default language" 3 years ago
ina.py
invidious.py
json_engine.py
kickass.py [mod] the bittorent search engines are available only in the files category 3 years ago
loc.py
mediathekviewweb.py [pylint] tag PYLINT_FILES by comment `# lint: pylint` 3 years ago
mediawiki.py
meilisearch.py [pylint] tag PYLINT_FILES by comment `# lint: pylint` 3 years ago
microsoft_academic.py
mixcloud.py
mysql_server.py [enh] add MySQL engine 3 years ago
not_evil.py
nyaa.py [mod] the bittorent search engines are available only in the files category 3 years ago
opensemantic.py
openstreetmap.py [fix] openstreetmap - fix some minor whitespace & indentation issues 3 years ago
pdbe.py
peertube.py [fix] peertube fetch supported languages 3 years ago
photon.py
piratebay.py [mod] the bittorent search engines are available only in the files category 3 years ago
postgresql.py [enh] add PostgreSQL engine 3 years ago
pubmed.py
qwant.py fix Qwant's fetch_languages function 3 years ago
recoll.py
reddit.py
redis_server.py [fix] enigine redis - avoid error when the engine is loaded 3 years ago
rumble.py
scanr_structures.py
searchcode_code.py
searx_engine.py
semantic_scholar.py
sepiasearch.py
seznam.py
sjp.py
solidtorrents.py [fix] URL to solidtorrent result page 3 years ago
solr.py [pylint] tag PYLINT_FILES by comment `# lint: pylint` 3 years ago
soundcloud.py
spotify.py
springer.py [pylint] tag PYLINT_FILES by comment `# lint: pylint` 3 years ago
sqlite.py [enh] add offline engine for sqlite database 3 years ago
stackoverflow.py
startpage.py
tokyotoshokan.py [mod] the bittorent search engines are available only in the files category 3 years ago
torrentz.py [mod] the bittorent search engines are available only in the files category 3 years ago
translated.py [fix] typo: online_dictionnary --> online_dictionary 3 years ago
unsplash.py [fix] unsplash engine - 'searx:result: invalid title:' 3 years ago
vimeo.py
wikidata.py
wikipedia.py
wolframalpha_api.py
wolframalpha_noapi.py
wordnik.py
www1x.py
xpath.py [enh] XPath engine - add time safe-search support 3 years ago
yacy.py
yahoo.py
yahoo_news.py [pylint] tag PYLINT_FILES by comment `# lint: pylint` 3 years ago
yggtorrent.py [mod] the bittorent search engines are available only in the files category 3 years ago
youtube_api.py
youtube_noapi.py