Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[enh] xpath engine - add request parameter 'soft_max_redirects'

Markus Heiserffcebf5e1260
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py
index 612f69abd..b215c2ba1 100644
--- a/searx/engines/xpath.py
+++ b/searx/engines/xpath.py
@@ -14,6 +14,7 @@ suggestion_xpath = ''
results_xpath = ''
cached_xpath = ''
cached_url = ''
+soft_max_redirects = 0
# parameters for engines with paging support
#
@@ -33,6 +34,7 @@ def request(query, params):
params['url'] = search_url.format(**fp)
params['query'] = query
+ params['soft_max_redirects'] = soft_max_redirects
return params