From 077d8efed85e468d863a52e8a32feb88ba158c11 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Fri, 21 Jul 2017 16:23:20 +0200 Subject: [PATCH] [fix] use poolrequests in ddg engines --- searx/engines/duckduckgo.py | 2 +- searx/engines/duckduckgo_images.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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