summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-09-17[translations] updatesearxng-bot
3834942d - 2021-09-15 - ButterflyOfFire <butterflyoffire@protonmail.com>
2021-09-17Merge pull request #327 from dalf/pyenv.activateAlexandre Flament
[mod] utils/lib.sh: add pyenv.activate
2021-09-17[mod] manage - use pyenv.activate where it makes senseMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-17[mod] utils/lib.sh: add pyenv.activateAlexandre Flament
* initialize virtualenv (pyenv.install) * activate virtualenv close #310
2021-09-17Merge pull request #261 from dalf/upgrade_httpxAlexandre Flament
[upd] upgrade httpx 0.19.0
2021-09-17Merge pull request #325 from searxng/dependabot/pip/master/pylint-2.11.1Alexandre Flament
Bump pylint from 2.10.2 to 2.11.1
2021-09-17Merge pull request #326 from searxng/dependabot/pip/master/sphinx-4.2.0Markus Heiser
Bump sphinx from 4.1.2 to 4.2.0
2021-09-17[pylint] fix global-variable-not-assigned issuesMarkus Heiser
If there is no write access, there is no need for global. Remove global statement if there is no assignment. global-variable-not-assigned: Using global for names but no assignment is done Used when a variable is defined through the "global" statement but no assignment to this variable is done. In Pylint 2.11 the global-variable-not-assigned checker now catches global variables that are never reassigned in a local scope and catches (reassigned) functions [1][2] [1] https://pylint.pycqa.org/en/latest/whatsnew/2.11.html [2] https://github.com/PyCQA/pylint/issues/1375 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-17[fix] error recorder: avoid RuntimeError on some rare occasionAlexandre Flament
httpx.RequestError (subclass of httpx.HTTPError) has a property request. This property raises a RuntimeError if the attributes _request is None. To avoid a cascade of errors, this commit reads directly the _request attribute.
2021-09-17[mod] searx.network: remove redundant codeAlexandre Flament
searx.client.new_client: the proxies parameter is a dictonnary, and the protocol (key of the dictionnary) is already normalized (see usage of searx.network.network.PROXY_PATTERN_MAPPING)
2021-09-17[upd] upgrade httpx 0.19.0Alexandre Flament
adjust searx.network module to the new internal API see https://github.com/encode/httpx/pull/1522
2021-09-17[pylint] disable consider-using-f-string in .pylintrcMarkus Heiser
Pylint 2.11 added [1][2] consider-using-f-string: Emitted when .format() or '%' is being used to format a string. We're not ready to enforce f-strings everywhere, so just disable this new warning. [1] https://pylint.pycqa.org/en/latest/whatsnew/2.11.html [2] https://github.com/PyCQA/pylint/issues/3592 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-17Bump sphinx from 4.1.2 to 4.2.0dependabot[bot]
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.1.2 to 4.2.0. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES) - [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.1.2...v4.2.0) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2021-09-17Bump pylint from 2.10.2 to 2.11.1dependabot[bot]
Bumps [pylint](https://github.com/PyCQA/pylint) from 2.10.2 to 2.11.1. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog) - [Commits](https://github.com/PyCQA/pylint/compare/v2.10.2...v2.11.1) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2021-09-14Merge pull request #297 from dalf/engine-logger-enhAlexandre Flament
debug mode: more readable logging
2021-09-13Merge pull request #318 from return42/fix-doc-brandMarkus Heiser
[brand] docs - normalize project name to SearXNG
2021-09-13[brand] docs - normalize project name to SearXNGMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-13[fix] settings - displayed name is SearXNGMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-13Merge pull request #317 from return42/fix-manage-usageAlexandre Flament
[fix] manage help(): commands babel.* has been renamed to weblate.*
2021-09-13Merge pull request #305 from dalf/fix-engine-loggerMarkus Heiser
[fix] logger per engine: make .logger is always initialized
2021-09-13[fix] logger per engine: make .logger is always initializedAlexandre Flament
the openstreetmap engine imports code from the wikidata engine. before this commit, specific code make sure to copy the logger variable to the wikidata engine. with this commit searx.engines.load_engine makes sure the .logger is initialized. The implementation scans sys.modules for module name starting with searx.engines.
2021-09-12[fix] manage help(): commands babel.* has been renamed to weblate.*Markus Heiser
In commit 97355672c the functions named babel.* has been renamed to weblate.* but it was forgotten to change it also in the help(). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-12Merge pull request #314 from MrPaulBlack/engine-stats-linkMarkus Heiser
Engine stats link
2021-09-12[theme] make engine stats clickableMrPaulBlack
2021-09-12[theme] link to engine stats in footerMrPaulBlack
2021-09-12Merge pull request #308 from dalf/plugin_hostname_replaceMarkus Heiser
[enh] add hostname_replace plugin
2021-09-11[enh] add hostname_replace pluginAlexandre Flament
* backport of https://github.com/searx/searx/pull/2724 * allow to remove result if the replacement is the boolean value false
2021-09-11Merge pull request #313 from dalf/fix-pr-257Alexandre Flament
[fix] PR #257: use the image_proxy network instead of the default network
2021-09-11[fix] PR #257: use the image_proxy network instead of the default networkAlexandre Flament
2021-09-11[mod] production mode: make sure to set the log level to WARNINGAlexandre Flament
set: * the root logger level to WARNING * the werkzeug logger level to WARNING (useful when there is no uwsgi)
2021-09-11[mod] xpath engine: remove logging of the requested URLAlexandre Flament
2021-09-11[mod] debug mode: log HTTP requests with network nameAlexandre Flament
For example wikipedia requests use the logger name "searx.network.wikipedia" Log is disable when searx_debug is False
2021-09-10[mod] debug mode: use coloredlogs packageAlexandre Flament
in debug mode, add some padding to make the output more readable in procution mode, add the timestamp
2021-09-10[mod] searx.metrics & searx.search: use the engine loggersAlexandre Flament
metrics & processors use the engine logger
2021-09-10Merge pull request #311 from dalf/fix-pr-302Markus Heiser
[fix] searx/results.py: strip result['content'] only if it exists
2021-09-10[fix] searx/results.py: strip result['content'] only if it existsAlexandre Flament
fix PR #302
2021-09-10Merge pull request #306 from dalf/docs-brandMarkus Heiser
[doc] searxng brand
2021-09-10Merge pull request #309 from searxng/ci-python-3.10.0-rc.2Alexandre Flament
[ci] add Python 3.10.0-rc.2
2021-09-10[ci] add Python 3.10.0-rc.2Alexandre Flament
2021-09-10[doc] update copyright notice and HTML titleAlexandre Flament
2021-09-10Merge pull request #302 from dalf/mod_plugin_on_resultMarkus Heiser
[mod] plugin: call on_result for each result of each engines.
2021-09-10[doc] update docs/dev/plugins.rstAlexandre Flament
2021-09-10Merge pull request #307 from dalf/remove-transifex-refMarkus Heiser
[fix] remove references to transifex
2021-09-09[fix] remove references to transifexAlexandre Flament
2021-09-09[mod] ahmia_filter: use on_result instead of post_searchAlexandre Flament
see commit 6c9ae7911e9639bc46cd53af215734b4bdb61ba9
2021-09-09[mod] plugin: call on_result after each engine from the ResultContainerAlexandre Flament
Currently, searx.search.Search calls on_result once the engine results have been merged (ResultContainer.order_results). on_result plugins can rewrite the results: once the URL(s) are modified, even they can be merged, it won't be the case since ResultContainer.order_results has already be called. This commit call on_result inside for each result of each engines. In addition the on_result function can return False to remove the result. Note: the on_result function now run on the engine thread instead of the Flask thread.
2021-09-08Merge pull request #303 from return42/fix-READMEAlexandre Flament
[fix] README - fix minor typo
2021-09-08[fix] README - fix minor typoMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07[mod] oa_doi_rewrite plugin: get_doi_resolver: remove args parameterAlexandre Flament
doi_resolvers.get_value('preferences') already contains the value from request.args.get('doi_resolver')
2021-09-07Merge pull request #295 from return42/fix-csp-2Alexandre Flament
[fix] make HTML templates more CSP compliant