From fe82637eaca40da12b84d7be0f09ffb6bda1f9cd Mon Sep 17 00:00:00 2001 From: asciimoo Date: Thu, 30 Jan 2014 02:32:58 +0100 Subject: [PATCH] [enh] importable url extractor --- searx/engines/xpath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py index 8960b5f21..14ca26158 100644 --- a/searx/engines/xpath.py +++ b/searx/engines/xpath.py @@ -37,7 +37,7 @@ def extract_text(xpath_results): return html_to_text(xpath_results.text_content()) -def extract_url(xpath_results): +def extract_url(xpath_results, search_url=search_url): url = extract_text(xpath_results) if url.startswith('//'):