| Age | Commit message (Collapse) | Author |
|
|
|
BTW: normalize indentations
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
[coding-style] searx/webapp.py - normalize indentations
|
|
- 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>
|
|
[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>
|
|
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
|
|
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
|
|
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>
|
|
|
|
close #127
|
|
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
This engine just exists for documentation purpose.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
This engine just exists for documentation purpose.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
[enh] flask debug mode: reload the app when searx/settings.yml changes
|
|
|
|
merge redis offline engine from searx
|
|
Should be _redis_client to avoid an error when the engine is loaded.
Suggested-by: @dalf https://github.com/searxng/searxng/pull/124#pullrequestreview-673885664
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
Based on commit:
- a89b823f [mod] remove overpass API call
this patch is generated by::
make themes.all
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
prepare the code the PR #90
|
|
|
|
Loading an engine should not exit the application (*). Instead
of exit, return None.
(*) RuntimeError still exit the application: syntax error, etc...
BTW: add documentation and normalize indentation (no functional change)
Suggested-by: @dalf https://github.com/searxng/searxng/pull/116#issuecomment-851865627
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
|
|
[mod] move all default settings into searx.settings_defaults
|
|
BTW: normalize some indentations in searx/settings_defaults.py
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
Slightly modified merge of commit [97269be6], [01a8a5814a] and [c8d2b5eb] from
searx.
[97269be6] https://github.com/searx/searx/commit/97269be6
[01a8a581] https://github.com/searx/searx/commit/01a8a581
[c8d2b5eb] https://github.com/searx/searx/commit/c8d2b5eb
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
Slightly modified merge of commit [ea7ccf24] from searx.
[ea7ccf24] https://github.com/searx/searx/commit/ea7ccf24
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
Update searx.data - update_ahmia_blacklist.py
|
|
Update searx.data - update_currencies.py
|
|
Update searx.data - update_wikidata_units.py
|
|
|
|
|
|
|