Marc Abonce Seguin
66b7be0965
[fix] fix match_language issue to make zh-TW match to zh-Hant-TW
...
pybabel separates locales with underscores but we use hyphens
everywhere babel doesn't directly touch
3 years ago
Alexandre Flament
b9c73fb697
[mod] move searx/testing.py to the tests directory
...
move robot tests to tests.robot
manage calls "python -m tests.robot"
3 years ago
Markus Heiser
a1adc46fc8
[pylint] Pylint 2.10 - fix redundant-u-string-prefix
...
Pylint 2.10 added new default checks [1]:
redundant-u-string-prefix:
Emitted when the u prefix is added to a string
[1] https://pylint.pycqa.org/en/latest/whatsnew/2.10.html
[2] https://github.com/PyCQA/pylint/issues/4102
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
1d0c368746
[enh] record details exception per engine
...
add an new API /stats/errors
4 years ago
Alexandre Flament
2006eb4680
[mod] move extract_text, extract_url to searx.utils
4 years ago
Alexandre Flament
ad0758e52a
[mod] add searx/webutils.py
...
contains utility functions and classes used only by webapp.py
4 years ago
Alexandre Flament
6deb85072a
[fix] searx.utils.HTMLTextExtractor: invalid HTML don't raise an Exception
...
Close #2188
4 years ago
Dalf
c225db45c8
Drop Python 2 (4/n): SearchQuery.query is a str instead of bytes
4 years ago
Dalf
1022228d95
Drop Python 2 (1/n): remove unicode string and url_utils
4 years ago
Alexandre Flament
2179079a91
[fix] fix flickr_noapi decoding ( #1655 )
...
Characters that were not ASCII were incorrectly decoded.
Add an helper function: searx.utils.ecma_unescape (Python implementation of unescape Javascript function).
5 years ago
rachmadani haryono
ec88fb8a0f
[fix] secret_key can be bytes instead of a string ( #1602 )
...
Fix #1600
In settings.yml, the secret_key can be written as string or as base64 encoded data using !!binary notation.
5 years ago
Marc Abonce Seguin
772c048d01
refactor engine's search language handling
...
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.
7 years ago
Adam Tauber
52e615dede
[enh] py3 compatibility
8 years ago
Adam Tauber
53979a7bf7
[mod] remove buildout/makefile infrastructure
9 years ago