| Age | Commit message (Collapse) | Author |
|
|
|
|
|
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
[pylint] searx/engines/duckduckgo_definitions.py
|
|
[fix] test.yamllint - fixed typo
|
|
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
BTW: normalize indentations
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
[fix] utils/morty.sh - PUBLIC_URL_MORTY is based on PUBLIC_URL
|
|
The public URL of the searx instance: PUBLIC_URL="https://mydomain.xy/searx"
The default is SEARX_URL which is taken from ./utils/brand.env.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
[coding-style] searx/webapp.py - normalize indentations
|
|
[yamllint] ./utils/templates/etc/searx/*.yml
|
|
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
[enh] google engine: supports "default language"
|
|
[emacs] clean up .dir-locals.el file
|
|
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
- HTTP header Accept-Language --> lang_info['headers']['Accept-Language']
- remove obsolete query_url log messages which is already logged by
httpx._client:HTTP request
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
BTW: remove obsolete log messages from google engine
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
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
|
|
No functional change!
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
[enh] improve openstreetmap engine
|
|
Based on commit 12af3b39 this patch is generated by::
make themes.all
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
Refactor webapp
|
|
[fix] section "Overrides" in engine's documentation
|
|
[1] https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
BTW: move some comments into script's doc-string
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
BTW: add doc strings and moved __all__ to the top [1]
[1] https://www.python.org/dev/peps/pep-0008/#module-level-dunder-names
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
|
|
implements ideas described in #69
* update the engine
* use wikidata
* update map.html template
|
|
h11 (used by httpx) rejects HTTP request with a trailing space in HTTP headers
|
|
[1] https://github.com/searxng/searxng/pull/97#discussion_r646094256
Suggested-by: @dalf [1]
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
render automatically adds these variables to the template context:
* advanced_search
* all_categories
* categories
before render was checking if the variable was already set
but it is actually never set by the callers
|
|
requires setproctitle (but optional)
|
|
it was used in the pix-art theme
|
|
no functional change, reorder declarations
|
|
|
|
|
|
see the result of:
git grep "base_url" searx/templates
"base_url" is not used any more.
|
|
|
|
[docs] reorder blog articles
|
|
[enh] add test.yamllint - lint yaml files
|
|
Open YAML file and use:
M-x flycheck-mode
Since we use yamllint from local/py3/bin, creating a virtualenv is a
prerequisite:
make pyenv
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
Fixed messages reported by::
make test.yamllint
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
Fixed messages reported by::
make test.yamllint
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
Fixed messages reported by::
make test.yamllint
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
Fixed messages reported by::
make test.yamllint
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
Fixed messages reported by::
make test.yamllint
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
Fixed messages reported by::
make test.yamllint
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
Fixed messages reported by::
make test.yamllint
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|