SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] yahoo engine url extraction
Adam Tauberee1ffbc87f0b
diff --git a/searx/engines/yahoo.py b/searx/engines/yahoo.pyindex f83b4b967..f070b8a7d 100644--- a/searx/engines/yahoo.py+++ b/searx/engines/yahoo.py@@ -35,7 +35,7 @@ def response(resp):for result in dom.xpath(results_xpath):url_string = extract_url(result.xpath(url_xpath), search_url)- start = url_string.find('/RU=')+4+ start = url_string.find('http', url_string.find('/RU=')+1)end = url_string.rfind('/RS')url = unquote(url_string[start:end])title = extract_text(result.xpath(title_xpath)[0])diff --git a/searx/engines/yahoo_news.py b/searx/engines/yahoo_news.pyindex 6ece496cd..3c257866c 100644--- a/searx/engines/yahoo_news.py+++ b/searx/engines/yahoo_news.py@@ -35,7 +35,7 @@ def response(resp):for result in dom.xpath(results_xpath):url_string = extract_url(result.xpath(url_xpath), search_url)- start = url_string.find('/RU=')+4+ start = url_string.find('http', url_string.find('/RU=')+1)end = url_string.rfind('/RS')url = unquote(url_string[start:end])title = extract_text(result.xpath(title_xpath)[0])