diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py index ea9242ee4..407d731f0 100644 --- a/searx/engines/duckduckgo.py +++ b/searx/engines/duckduckgo.py @@ -14,9 +14,9 @@ """ from lxml.html import fromstring -from requests import get from json import loads from searx.engines.xpath import extract_text +from searx.poolrequests import get from searx.url_utils import urlencode # engine dependent config diff --git a/searx/engines/duckduckgo_images.py b/searx/engines/duckduckgo_images.py index b7b0d8aa4..dbd78b074 100644 --- a/searx/engines/duckduckgo_images.py +++ b/searx/engines/duckduckgo_images.py @@ -13,10 +13,10 @@ @todo avoid extra request """ -from requests import get from json import loads from searx.engines.xpath import extract_text from searx.engines.duckduckgo import _fetch_supported_languages, supported_languages_url, get_region_code +from searx.poolrequests import get from searx.url_utils import urlencode # engine dependent config