summaryrefslogtreecommitdiff
path: root/searx/engines/duckduckgo_definitions.py
AgeCommit message (Collapse)Author
2022-09-27[fix] typos / reported by @kianmeng in searx PR-3366Markus Heiser
[PR-3366] https://github.com/searx/searx/pull/3366 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-08-01[mod] add 'Accept-Language' HTTP header to online processoresMarkus Heiser
Most engines that support languages (and regions) use the Accept-Language from the WEB browser to build a response that fits to the language (and region). - add new engine option: send_accept_language_header Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-27[fix] issues reported by pylintMarkus Heiser
Fix pylint issues from commit (3d96a983) [format.python] initial formatting of the python code Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-27[format.python] initial formatting of the python codeMarkus Heiser
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-09-07[pylint] engines: drop no longer needed 'missing-function-docstring'Markus Heiser
Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914168470 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07[fix] drop useless pylint: disable=undefined-variableMarkus Heiser
Since 7b235a1 (see line 591) it is no longer needed to disable 'undefined-variable' for names defined in:: PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914068609 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-06[mod] one logger per engine - drop obsolete logger.getChildMarkus Heiser
Remove the no longer needed `logger = logger.getChild(...)` from engines. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-14[pylint] searx/engines/duckduckgo_definitions.pyMarkus Heiser
BTW: normalize indentations Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
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-06[fix] duckduckgo_definitions: fix relative image URLAlexandre Flament
ddg returns relative URL to https://duckduckgo.com/
2020-12-01[mod] pylint: numerous minor code fixesAlexandre Flament
2020-11-14[mod] remove unused importAlexandre Flament
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
2020-10-28[mod] duckduckgo_definitions: display only user friendly attributes / URLAlexandre Flament
various bug fixes
2020-10-02[mod] move extract_text, extract_url to searx.utilsAlexandre Flament
2020-09-10Drop Python 2 (1/n): remove unicode string and url_utilsDalf
2019-12-02duckduckgo_definitions: remove the debug messageMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2019-11-29[fix] duckduckgo_definition issues reported by 'manage.sh test'Markus Heiser
Fix this error while travis build:: /home/travis/build/asciimoo/searx/searx/engines/duckduckgo_definitions.py:21:44: E225 missing whitespace around operator Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2019-11-29[fix] duckduckgo_definitions - where 'AnswerType' is 'calc'Markus Heiser
Do not try to get text when 'AnswerType' is 'calc'. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2018-03-27refactor engine's search language handlingMarc Abonce Seguin
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.
2017-05-15[enh] py3 compatibilityAdam Tauber
2016-12-15tests for _fetch_supported_languages in enginesmarc
and refactor method to make it testable without making requests
2016-12-13[mod] fetch supported languages for several enginesmarc
utils/fetch_languages.py gets languages supported by each engine and generates engines_languages.json with each engine's supported language.
2016-12-13[enh] add supported_languages on engines and auto-generate languages.pymarc
2016-04-19[fix] compile regex in ddg_definitionsa01200356
2016-04-17[enh] multilingual duckduckgo_definitionsa01200356
2015-02-09DDG Definitions' unit testsCqoicebordel
2015-01-01[mod] purge local html_to_textAdam Tauber
2014-12-07[fix] pep8 : duckduckgo_definitions and wikidata enginesdalf
2014-10-11[enh] infoboxes : if the result doesn't contain anything except one link, ↵dalf
use the normal result template
2014-09-28[enh] add infoboxes and answersDalf
2014-01-20[fix] pep/flake8 compatibilityasciimoo
2014-01-11[enh] set up special css classes for highlighting results + highlight ↵rhapsodhy
definitions with dark grey border
2014-01-05[mod] minor fixes (duckduck_definitions : if a ddg bang is in the query, ↵Dalf
avoid a useless redirect)
2013-10-23[enh] engine cfg compatibiltyasciimoo
2013-10-15[enh] engine typesasciimoo
2013-10-15[fix] comments removedasciimoo
2013-10-14[enh] duckduckgo definitionsasciimoo