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