mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[enh] importable url extractor
This commit is contained in:
@@ -37,7 +37,7 @@ def extract_text(xpath_results):
|
|||||||
return html_to_text(xpath_results.text_content())
|
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)
|
url = extract_text(xpath_results)
|
||||||
|
|
||||||
if url.startswith('//'):
|
if url.startswith('//'):
|
||||||
|
|||||||
Reference in New Issue
Block a user