summaryrefslogtreecommitdiff
path: root/searx/engines/yandex.py
AgeCommit message (Collapse)Author
2025-11-25[mod] yandex engine: add supported languagesAadniz
Add support for Yandex's supported languages; Russian, English, Belarusian, French, German, Indonesian, Kazakh, Tatar, Turkish and Ukrainian.
2025-11-06[fix] yandex engine: capture captcha from header instead of url path (#5417)Aadniz
Yandex engine will return parsing error instead of informing that a CAPTCHA was found. It is confusing for the admin and the users (#5415). This patch fixes an issue where the CAPTCHA response from Yandex wouldn't be detected, resulting in `ParserError` when trying to parse the response to DOM. In this fix, I replaced the url condition and instead is checking if the `x-yandex-captcha` header is set, and is equal to `captcha`. Alternatively, maybe something like `resp.headers.get('Location', '').startswith("https://yandex.com/showcaptcha")` could be done instead. Lastly, setting `params['allow_redirects'] = True` can also work, but this will waste an extra request. Just let me know. Closes: https://github.com/searxng/searxng/issues/5415
2024-08-21[feat] engine: implementation of yandex (web, images)Austin-Olacsi
It's set to inactive in settings.yml because of CAPTCHA. You need to remove that from the settings.yml to get in use. Closes: https://github.com/searxng/searxng/issues/961
2021-02-11[remove] yandex engineAlexandre Flament
2021-02-01[mod] dynamically set language_support variableAlexandre Flament
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-01-14[enh] engines: add about variableAlexandre Flament
move meta information from comment to the about variable so the preferences, the documentation can show these information
2020-12-03[mod] stackoverflow & yandex: detect CAPTCHA responseAlexandre Flament
2020-09-10Drop Python 2 (1/n): remove unicode string and url_utilsDalf
2017-05-15[enh] py3 compatibilityAdam Tauber
2016-12-13Add language support for more engines.marc
2016-12-13[enh] add supported_languages on engines and auto-generate languages.pymarc
2016-12-11fix xpath of yandexNoémi Ványi
2016-12-09[mod] do not escape html content in enginesAdam Tauber
2016-01-23[fix] swisscow and yandex escaping - fixes #499Adam Tauber
2016-01-18[fix] pep8 compatibiltyAdam Tauber
2015-10-31[fix] yandex engine language support according to #430Adam Tauber
2015-10-31[enh] yandex engine addedAdam Tauber