Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-01-30 | [mod] searx.utils: more typing | Alexandre Flament | |
2022-01-29 | [mod] add documentation about searx.utils | Alexandre Flament | |
This module is a toolbox for the engines. Is should be documented. In addition, searx/utils.py is checked by pylint. | |||
2021-12-27 | [format.python] initial formatting of the python code | Markus Heiser | |
This patch was generated by black [1]:: make format.python [1] https://github.com/psf/black Signed-off-by: Markus Heiser <markus.heiser@darmarit.de> | |||
2021-10-12 | [fix] fix match_language issue to make zh-TW match to zh-Hant-TW | Marc Abonce Seguin | |
pybabel separates locales with underscores but we use hyphens everywhere babel doesn't directly touch | |||
2021-10-06 | [fix] don't mix loaded modules with imported modules (sys.modules) | Markus Heiser | |
The utils.load_module() function is used to load a python file (aka module) and return the module's namespace. SearXNG uses this function to load *engines and answerers* from arbitrary locations with arbitrary modifications. These are not real python modules and it is not intended to mix this *engines and answerers* with the python modules registered in sys.modules. Closes: https://github.com/searxng/searxng/issues/312 Suggested-by: @dalf in https://github.com/searxng/searxng/issues/312 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de> | |||
2021-08-24 | [mod] searx.utils.dict_subset: rewrite with comprehension | Alexandre Flament | |
2021-07-30 | version based on the git repository | Alexandre Flament | |
This commit remove the need to update the brand for GIT_URL and GIT_BRANCH: there are read from the git repository. It is possible to call python -m searx.version freeze to freeze the current version. Useful when the code is installed outside git (distro package, docker, etc...) | |||
2021-06-09 | [fix] strip spaces from searx user agent | Alexandre Flament | |
h11 (used by httpx) rejects HTTP request with a trailing space in HTTP headers | |||
2021-06-01 | [mod] move all default settings into searx.settings_defaults | Alexandre Flament | |
2021-05-28 | [mod] utils.get_value() - avoidance of a recursion | Markus Heiser | |
In a comment [1] dalf suggested to avoid a recursion of get_value() [1] https://github.com/searxng/searxng/pull/99#discussion_r640833716 Suggested-by: Alexandre Flament <alex@al-f.net> Signed-off-by: Markus Heiser <markus.heiser@darmarit.de> | |||
2021-05-28 | [enh] add settings option to enable/disable search formats | Markus Heiser | |
Access to formats can be denied by settings configuration:: search: formats: [html, csv, json, rss] Closes: https://github.com/searxng/searxng/issues/95 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de> | |||
2021-04-10 | [enh] replace requests by httpx | Alexandre Flament | |
2020-12-20 | [fix] pylint: use "raise ... from ..." | Alexandre Flament | |
2020-12-03 | [mod] bing_news: use eval_xpath_getindex | Alexandre Flament | |
remove unused function searx.utils.list_get | |||
2020-12-03 | [enh] record details exception per engine | Alexandre Flament | |
add an new API /stats/errors | |||
2020-12-01 | [mod] pylint: numerous minor code fixes | Alexandre Flament | |
2020-11-14 | [mod] remove unused import | Alexandre Flament | |
use from searx.engines.duckduckgo import _fetch_supported_languages, supported_languages_url # NOQA so it is possible to easily remove all unused import using autoflake: autoflake --in-place --recursive --remove-all-unused-imports searx tests | |||
2020-10-28 | [mod] duckduckgo_definitions: display only user friendly attributes / URL | Alexandre Flament | |
various bug fixes | |||
2020-10-07 | [mod] Add searx.data module | Alexandre Flament | |
Instead of loading the data/*.json in different location, load these files in the new searx.data module. | |||
2020-10-06 | [fix] drop Python 2: use importlib instead of imp.load_source | Alexandre Flament | |
imp.load_source is not documented in Python 3 see documentation : https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly partial fix of https://github.com/searx/searx/issues/1674 | |||
2020-10-03 | [mod] searx.utils.normalize_url: remove Yahoo hack | Alexandre Flament | |
* The hack for Yahoo URLs is not necessary anymore. (see searx.engines.yahoo.parse_url) * move the URL normalization in extract_url to normalize_url | |||
2020-10-02 | [mod] searx/utils.py: add docstring | Alexandre Flament | |
2020-10-02 | [mod] move extract_text, extract_url to searx.utils | Alexandre Flament | |
2020-09-22 | [mod] add searx/webutils.py | Alexandre Flament | |
contains utility functions and classes used only by webapp.py | |||
2020-09-13 | [fix] searx.utils.HTMLTextExtractor: invalid HTML don't raise an Exception | Alexandre Flament | |
Close #2188 | |||
2020-09-10 | Drop Python 2 (5/n): searx.utils.is_valid_lang, input parameter is a str ↵ | Alexandre Flament | |
instead of bytes Fix bug in translated.py and dictzone.py | |||
2020-09-10 | Drop Python 2 (4/n): SearchQuery.query is a str instead of bytes | Dalf | |
2020-09-10 | Drop Python 2 (1/n): remove unicode string and url_utils | Dalf | |
2019-11-15 | [mod] speed optimization | Dalf | |
compile XPath only once avoid redundant call to urlparse get_locale(webapp.py): avoid useless call to request.accept_languages.best_match | |||
2019-10-16 | fix pep 8 check | Noémi Ványi | |
2019-10-16 | add initial support for offline engines && command engine | Noémi Ványi | |
2019-10-16 | [fix] convert bytes type to string in language detection (fixes dictzone) | Adam Tauber | |
2019-08-02 | [fix] fix flickr_noapi decoding (#1655) | Alexandre Flament | |
Characters that were not ASCII were incorrectly decoded. Add an helper function: searx.utils.ecma_unescape (Python implementation of unescape Javascript function). | |||
2019-07-19 | [mod] use cache in _match_language function to speed up searx start time ↵ | Dalf | |
significantly | |||
2019-07-17 | [fix] secret_key can be bytes instead of a string (#1602) | rachmadani haryono | |
Fix #1600 In settings.yml, the secret_key can be written as string or as base64 encoded data using !!binary notation. | |||
2018-08-05 | fetch_firefox_version.py : compatible with Python 3 and minor fixes. | Alex | |
2018-08-05 | [mod] fetch firefox versions in a standalone script | Alexandre Flament | |
2018-07-09 | Merge pull request #1303 from MarcAbonce/bing | Adam Tauber | |
Fix bing "garbage" results | |||
2018-06-23 | [fix] update user agent versions | Marc Abonce Seguin | |
this fixes duckduckgo error response | |||
2018-06-14 | [fix] add basestring for py3 | Adam Tauber | |
2018-05-20 | fix bing "garbage" results (issue #1275) | Marc Abonce Seguin | |
2018-03-27 | refactor engine's search language handling | Marc Abonce Seguin | |
Add match_language function in utils to match any user given language code with a list of engine's supported languages. Also add language_aliases dict on each engine to translate standard language codes into the custom codes used by the engine. | |||
2017-12-01 | [fix] convert json engine result attributes to string - closes #1006 | Adam Tauber | |
2017-11-21 | [fix] remove trailing 0x00 from csv output | Adam Tauber | |
2017-11-21 | [fix] resurrect csv output in py2 | Adam Tauber | |
2017-09-08 | fix hmac python3 compatibility | Noémi Ványi | |
2017-09-04 | [mod] int_or_zero refactored to searx_utils | misnyo | |
2017-06-25 | [fix] is_valid_lang fixed for new languages.py + dictzone engine encoding | potato | |
2017-05-15 | [mod] settings.yml can be /etc/searx/settings.yml | Alexandre Flament | |
The exact order is * first from SEARX_SETTINGS_PATH, * if not found then from searx code base, * if not found then from /etc/searx/settings.yml * if not found an exception stops searx loading | |||
2017-05-15 | [mod] the static and templates directories can be defined in the settings.yml | Alexandre Flament | |