Alexandre Flament
49ea5b7644
Static build
3 years ago
Alexandre Flament
9108c90f0e
[mod] simple theme: update dependencies
3 years ago
Markus Heiser
127552f67b
Merge pull request #146 from return42/ddg-definitions
...
[pylint] searx/engines/duckduckgo_definitions.py
3 years ago
Markus Heiser
1b4208b946
Merge pull request #148 from return42/fix-yamllint
...
[fix] test.yamllint - fixed typo
3 years ago
Markus Heiser
9b0151eaa8
[fix] test.yamllint - fixed typo
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
343570f7fb
[pylint] searx/engines/duckduckgo_definitions.py
...
BTW: normalize indentations
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
21541f8a12
Merge pull request #145 from return42/fix-morty
...
[fix] utils/morty.sh - PUBLIC_URL_MORTY is based on PUBLIC_URL
3 years ago
Markus Heiser
1f91d85506
[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>
3 years ago
Markus Heiser
2449ea70b5
Merge pull request #139 from return42/refactor-webapp
...
[coding-style] searx/webapp.py - normalize indentations
3 years ago
Alexandre Flament
8cab37229f
Merge pull request #144 from return42/fix-yamllint
...
[yamllint] ./utils/templates/etc/searx/*.yml
3 years ago
Markus Heiser
4a814dabf3
[yamllint] ./utils/templates/etc/searx/*.yml
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
52db47a1c9
Merge pull request #134 from searxng/google-default-language
...
[enh] google engine: supports "default language"
3 years ago
Markus Heiser
7a436a5060
Merge pull request #143 from return42/emacs
...
[emacs] clean up .dir-locals.el file
3 years ago
Markus Heiser
f07385bca7
[emacs] clean up .dir-locals.el file
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
2ac3e5b20b
[fix] log messages from: google- images, news, scholar, videos
...
- 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>
3 years ago
Markus Heiser
1ac3961336
[mod] google - get_lang_info add documentataion & comments
...
BTW: remove obsolete log messages from google engine
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
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
Markus Heiser
d0daa87ce6
[coding-style] searx/webapp.py - normalize indentations
...
No functional change!
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
73dbee45a6
Merge pull request #90 from searxng/enh-osm-engine
...
[enh] improve openstreetmap engine
3 years ago
Markus Heiser
15178e5b96
[static] make themes.all - based on commit 12af3b39
...
Based on commit 12af3b39
this patch is generated by::
make themes.all
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
68df982e21
Merge pull request #135 from searxng/refactor-webapp
...
Refactor webapp
3 years ago
Alexandre Flament
314e09091b
Merge pull request #138 from return42/fix-doc
...
[fix] section "Overrides" in engine's documentation
3 years ago
Markus Heiser
12af3b39db
[fix] make simple/result_templates/map.html more CSP compliant [1]
...
[1] https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
bf10b4a857
[fix] openstreetmap - fix some minor whitespace & indentation issues
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
40956e8e6b
[data.all] add searx_extra/update/update_osm_keys_tags.py
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
8871e39122
[pylint] searx_extra/update/update_osm_keys_tags.py
...
BTW: move some comments into script's doc-string
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
5cf1ae2672
[pylint] searx/data/__init__.py
...
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>
3 years ago
Alexandre Flament
2e5d823162
[fix] searx/data/__init__.py: rename __init__ as __all__
3 years ago
Alexandre Flament
c75425655f
[enh] openstreetmap / map template: improve results
...
implements ideas described in #69
* update the engine
* use wikidata
* update map.html template
3 years ago
Alexandre Flament
92c8a8829f
[fix] strip spaces from searx user agent
...
h11 (used by httpx) rejects HTTP request with a trailing space in HTTP headers
3 years ago
Markus Heiser
ab259017cc
[fix] section "Overrides" in engine's documentation
...
[1] https://github.com/searxng/searxng/pull/97#discussion_r646094256
Suggested-by: @dalf [1]
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
2a109d0a5f
[mod] refactor searx.webapp.render
...
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
3 years ago
Alexandre Flament
70bbd14b1a
[mod] move hook to set Unix thread name into searx.unixthreadname
...
requires setproctitle (but optional)
3 years ago
Alexandre Flament
0e23113f70
[mod] remove unused filter searx.webapp.extract_domain
...
it was used in the pix-art theme
3 years ago
Alexandre Flament
cfa07b0a9a
[mod] refactor searx.webapp.render
...
no functional change, reorder declarations
3 years ago
Alexandre Flament
91856e8f6a
[mod] refactor searx.webapp.render: remove unused parameters
3 years ago
Alexandre Flament
15567955b4
[mod] remove check of Python 2.
3 years ago
Alexandre Flament
aedf0aa5fe
[mod] remove searx.webapp.get_base_url function
...
see the result of:
git grep "base_url" searx/templates
"base_url" is not used any more.
3 years ago
Alexandre Flament
eeb0998787
[mod] refactor: move Flask proxy fix to searx.flaskfix module
3 years ago
Markus Heiser
5c5db719d2
Merge pull request #97 from return42/drop-searx-admin
...
[docs] reorder blog articles
3 years ago
Alexandre Flament
5f76238d5c
Merge pull request #105 from return42/yaml
...
[enh] add test.yamllint - lint yaml files
3 years ago
Markus Heiser
6b9633098d
[emacs] flycheck - activate yamllint and use .yamllint.yml
...
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>
3 years ago
Markus Heiser
5a7b12ee6f
[yamllint] searx/settings.yml
...
Fixed messages reported by::
make test.yamllint
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
4e845966ba
[yamllint] searx/settings_robot.yml
...
Fixed messages reported by::
make test.yamllint
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
b86a3f6303
[yamllint] tests/unit/settings/user_settings_remove2.yml
...
Fixed messages reported by::
make test.yamllint
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
008760a8c2
[yamllint] tests/unit/settings/user_settings_remove.yml
...
Fixed messages reported by::
make test.yamllint
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
15da3f6591
[yamllint] tests/unit/settings/user_settings_simple.yml
...
Fixed messages reported by::
make test.yamllint
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
00b10bb443
[yamllint] tests/unit/settings/user_settings_keep_only.yml
...
Fixed messages reported by::
make test.yamllint
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
c5d3f542d5
[yamllint] tests/unit/settings/user_settings.yml
...
Fixed messages reported by::
make test.yamllint
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
68213f6be4
[yamllint] tests/unit/settings/syntaxerror_settings.yml
...
Fixed messages reported by::
make test.yamllint
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago