Bläddra i källkod

[enh] importable url extractor

asciimoo 11 år sedan
förälder
incheckning
fe82637eac
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      searx/engines/xpath.py

+ 1
- 1
searx/engines/xpath.py Visa fil

@@ -37,7 +37,7 @@ def extract_text(xpath_results):
37 37
         return html_to_text(xpath_results.text_content())
38 38
 
39 39
 
40
-def extract_url(xpath_results):
40
+def extract_url(xpath_results, search_url=search_url):
41 41
     url = extract_text(xpath_results)
42 42
 
43 43
     if url.startswith('//'):