Markus
21bfb4996e
[fix] engine yahoo: HTML tags are included in result titles
...
- https://github.com/searxng/searxng/issues/3790
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-09-03 22:26:59 +02:00
Bnyro
644ae51417
[fix] yahoo: result titles are getting mixed together
2024-04-20 17:00:17 +02:00
Markus Heiser
8205f170ff
[mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-03-11 14:55:38 +01:00
Jinyuan Huang
e509cb7c45
[typo] solved a typo in yahoo error message.
2023-10-01 08:29:06 +02:00
Jinyuan Huang
d4d9f2073e
[fix] Bug: Yahoo results for simplified Chinese search sometimes have the first character cut off #2866
...
Co-authored-by: Blair Noctis <n@sail.ng>
2023-10-01 08:29:06 +02:00
Markus Heiser
ef143729a0
[mod] yahoo: fetch engine traits (data_type: traits_v1)
...
Implements a fetch_traits function for the Yahoo engine.
.. note::
Includes migration of the request methode from 'supported_languages' to
'traits' (EngineTraits) object!
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-03-24 10:37:42 +01:00
capric98
8c7e6cc983
[fix] FutureWarning from lxml
...
Just in case if content is None, the original code will skip extract_text(), and
just append the None value to 'content'. So just add allow_none=True, and this
will return None without raising a ValueError in extract_text().
2022-04-22 16:09:36 +02:00
Martin Fischer
b02f762687
[enh] add more categories
2022-01-05 11:00:11 +01:00
Markus Heiser
3d96a9839a
[format.python] initial formatting of the python code
...
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-12-27 09:26:22 +01:00
Markus Heiser
713814547a
[fix] yahoo engine - don't lump all search suggestions together
...
Closes: https://github.com/searxng/searxng/issues/421
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-10-21 07:51:05 +00:00
Markus Heiser
f63ffbb22b
[fix] engine - yahoo: rewrite and fix issues
...
Languages are supported by mapping the language to a domain. If domain is not
found in :py:obj:`lang2domain` URL ``<lang>.search.yahoo.com`` is used.
BTW: fix issue reported at https://github.com/searx/searx/issues/3020
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-10-16 20:05:26 +00:00
Markus Heiser
38a157b56f
[pylint] engines: yahoo fix several issues reported from pylint
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-10-16 20:05:26 +00:00
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
2021-02-01 17:10:37 +01:00
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
2021-01-14 20:57:17 +01:00
Alexandre Flament
2006eb4680
[mod] move extract_text, extract_url to searx.utils
2020-10-02 18:13:56 +02:00
Dalf
1022228d95
Drop Python 2 (1/n): remove unicode string and url_utils
2020-09-10 10:39:04 +02:00
Markus Heiser
5293e58032
[fix] yahoo engine - changed content_xpath
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-06-25 21:45:42 +02:00
Dalf
85b3723345
[mod] speed optimization
...
compile XPath only once
avoid redundant call to urlparse
get_locale(webapp.py): avoid useless call to request.accept_languages.best_match
2019-11-15 09:33:15 +01:00
Noémi Ványi
b63d645a52
Revert "remove 'all' option from search languages"
...
This reverts commit 4d1770398a
.
2019-01-07 21:19:00 +01:00
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.
2018-03-27 00:08:03 -06:00
marc
4d1770398a
remove 'all' option from search languages
2017-12-06 01:20:15 -06:00
Adam Tauber
52e615dede
[enh] py3 compatibility
2017-05-15 12:02:30 +02:00
marc
af35eee10b
tests for _fetch_supported_languages in engines
...
and refactor method to make it testable without making requests
2016-12-15 00:40:21 -06:00
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.
2016-12-13 19:58:10 -06:00
marc
149802c569
[enh] add supported_languages on engines and auto-generate languages.py
2016-12-13 19:32:00 -06:00
Noémi Ványi
b034356825
add year filter to engines with time range support && tests
...
Following engines does not support "Last year":
* Bing News
* DeviantArt
* DuckDuckGo
* Yahoo
* YouTube (noapi)
2016-12-11 16:58:31 +01:00
Adam Tauber
350a84520d
[fix] time range detection
2016-07-26 00:28:48 +02:00
Noemi Vanyi
a7c8d5882c
fix pep8
2016-07-25 23:28:14 +02:00
Noemi Vanyi
93c0c49e9a
add time range search with yahoo
2016-07-25 23:19:46 +02:00
Adam Tauber
2f7752b410
[enh] display number of results
2016-06-28 00:06:50 +02:00
Alexandre Flament
4689fe341c
update versions.cfg to use the current up-to-date packages
2015-05-02 15:45:17 +02:00
dalf
57996b12fc
[fix] update yahoo engine according to the web site changes
2015-02-20 12:34:13 +01:00
Cqoicebordel
9f13af8d3c
Yahoo's unit test
2015-02-04 20:41:40 +01:00
Thomas Pointhuber
a508d540ac
[fix] pep8
2014-12-16 17:26:16 +01:00
dalf
7c13d630e4
[fix] pep8 : engines (errors E121, E127, E128 and E501 still exist)
2014-12-07 16:37:56 +01:00
Dalf
a4ffeddce1
[fix] yahoo engines: parse_url doesn't throw an exception with not tracking URL
2014-09-07 18:42:56 +02:00
Thomas Pointhuber
03db970e6a
fix yahoo engines and add comments
2014-09-01 16:17:29 +02:00
Adam Tauber
01c2eeb8ff
[fix] indexing ++ url extraction
2014-03-21 16:36:13 +01:00
Adam Tauber
faed14b2c6
[fix] #55
2014-03-18 10:06:14 +01:00
Adam Tauber
3acdf3f9a1
[fix] pep8
2014-03-10 16:46:11 +01:00
Adam Tauber
0fc481f47e
[fix] yahoo url extraction
2014-03-08 19:09:03 +01:00
Adam Tauber
ee1ffbc87f
[fix] yahoo engine url extraction
2014-03-04 14:19:59 +01:00
Adam Tauber
4627788834
[fix] yahoo url mods
2014-02-27 10:59:39 +01:00
Gabor Nagy
22fd0746d9
Improves PEP8 compatibility.
2014-02-05 20:24:31 +01:00
asciimoo
3a2b9a8682
[fix] pep8
2014-01-31 05:11:37 +01:00
asciimoo
68a0832524
[enh] search language support upadtes
2014-01-31 05:10:49 +01:00
asciimoo
72793725e2
[fix] print removed
2014-01-30 02:36:15 +01:00
asciimoo
642986c2e7
[enh] yahoo engine added
2014-01-30 02:33:24 +01:00