summaryrefslogtreecommitdiff
path: root/searx/engines/xpath.py
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-01-30 02:32:58 +0100
committerasciimoo <asciimoo@gmail.com>2014-01-30 02:32:58 +0100
commitfe82637eaca40da12b84d7be0f09ffb6bda1f9cd (patch)
treee58f1269f02a85da0dab95cb7b152bc162d036e8 /searx/engines/xpath.py
parent14f4083ba107fd0e3e536d5aeeb67ca995d351e3 (diff)
downloadsearxng-fe82637eaca40da12b84d7be0f09ffb6bda1f9cd.tar.gz
searxng-fe82637eaca40da12b84d7be0f09ffb6bda1f9cd.zip
[enh] importable url extractor
Diffstat (limited to 'searx/engines/xpath.py')
-rw-r--r--searx/engines/xpath.py2
1 files changed, 1 insertions, 1 deletions
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('//'):