Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe82637e authored by asciimoo's avatar asciimoo
Browse files

[enh] importable url extractor

parent 14f4083b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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('//'):