SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] close #197 for all engines
dalf5029cb478755
diff --git a/searx/engines/kickass.py b/searx/engines/kickass.pyindex 4e5a64350..ea7f17c23 100644--- a/searx/engines/kickass.py+++ b/searx/engines/kickass.py@@ -45,11 +45,6 @@ def request(query, params):def response(resp):results = []- # check if redirect comparing to the True value,- # because resp can be a Mock object, and any attribut name returns something.- if resp.is_redirect is True:- return results-dom = html.fromstring(resp.text)search_res = dom.xpath('//table[@class="data"]//tr')diff --git a/searx/search.py b/searx/search.pyindex 79a8ae0a9..476b92197 100644--- a/searx/search.py+++ b/searx/search.py@@ -87,6 +87,11 @@ def make_callback(engine_name, results_queue, callback, params):# creating a callback wrapper for the search engine resultsdef process_callback(response, **kwargs):+ # check if redirect comparing to the True value,+ # because resp can be a Mock object, and any attribut name returns something.+ if response.is_redirect is True:+ return+response.search_params = paramstimeout_overhead = 0.2 # seconds