Markus Heiser
f0059b80ed
[pylint] engines: drop no longer needed 'missing-function-docstring'
...
Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914168470
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
aecfb2300d
[mod] one logger per engine - drop obsolete logger.getChild
...
Remove the no longer needed `logger = logger.getChild(...)` from engines.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
dc29f1d826
[pylint] tag PYLINT_FILES by comment `# lint: pylint`
...
These py files are linted by `test.pylint`, all other files are linted by
`test.pep8`.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Markus Heiser
6e1f1085ef
[fix] remove unused import from yahoo-news engine
...
Signed-off-by: Markus Heiser <markus@darmarit.de>
4 years ago
Markus Heiser
d2faea423a
[fix] rewrite Yahoo-News engine
...
Many things have been changed since last review of this engine. This patch fix
xpath selectors, implements suggestion and is a complete review / rewrite of the
engine.
Signed-off-by: Markus Heiser <markus@darmarit.de>
4 years ago
Alexandre Flament
ca93a01844
[mod] dynamically set language_support variable
...
The language_support variable is set to True by default,
and set to False in only 5 engines.
Except the documentation and the /config URL, this variable is not used.
This commit remove the variable definition in the engines, and
set value according to supported_languages length: False when the length is 0,
True otherwise.
Close #2485
4 years ago
Alexandre Flament
a4dcfa025c
[enh] engines: add about variable
...
move meta information from comment to the about variable
so the preferences, the documentation can show these information
4 years ago
Alexandre Flament
b00d108673
[mod] pylint: numerous minor code fixes
4 years ago
Alexandre Flament
3038052c79
[mod] remove unused import
...
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
4 years ago
Alexandre Flament
2006eb4680
[mod] move extract_text, extract_url to searx.utils
4 years ago
Dalf
1022228d95
Drop Python 2 (1/n): remove unicode string and url_utils
4 years ago
Noémi Ványi
b63d645a52
Revert "remove 'all' option from search languages"
...
This reverts commit 4d1770398a
.
6 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
marc
4d1770398a
remove 'all' option from search languages
7 years ago
Adam Tauber
52e615dede
[enh] py3 compatibility
8 years ago
Adam Tauber
46a2c63f8e
[fix] yahoo news date parsing
8 years ago
marc
af35eee10b
tests for _fetch_supported_languages in engines
...
and refactor method to make it testable without making requests
8 years ago
marc
f62ce21f50
[mod] fetch supported languages for several engines
...
utils/fetch_languages.py gets languages supported by each engine and
generates engines_languages.json with each engine's supported language.
8 years ago
marc
149802c569
[enh] add supported_languages on engines and auto-generate languages.py
8 years ago
stepshal
b3ab221b98
Fix anomalous backslash in string
8 years ago
Alexandre Flament
44ed4424f6
[fix] yahoo_news engine
10 years ago
Adam Tauber
b0fd71b7b3
[fix] pep8 compatibility
10 years ago
Thomas Pointhuber
03db970e6a
fix yahoo engines and add comments
10 years ago
Thomas Pointhuber
993271bed3
extract publishDate from vimeo
11 years ago
Thomas Pointhuber
337bd6d907
simplify datetime extraction
11 years ago
Adam Tauber
b735093564
[fix] pep8
11 years ago
Thomas Pointhuber
5538c6771a
improve publishDate extraction from yahoo
11 years ago
Thomas Pointhuber
b88146d669
showing publishedDate for news
11 years ago
Adam Tauber
0fc481f47e
[fix] yahoo url extraction
11 years ago
Adam Tauber
ee1ffbc87f
[fix] yahoo engine url extraction
11 years ago
Thomas Pointhuber
f1404ce72d
Create yahoo_news.py
11 years ago