Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] pep8

Adam Tauber3acdf3f9a172
diff --git a/searx/engines/yahoo.py b/searx/engines/yahoo.py
index a6c597e1c..7f87e455f 100644
--- a/searx/engines/yahoo.py
+++ b/searx/engines/yahoo.py
@@ -15,11 +15,13 @@ suggestion_xpath = '//div[@id="satat"]//a'
paging = True
+
def parse_url(url_string):
start = url_string.find('http', url_string.find('/RU=')+1)
end = min(url_string.rfind('/RS'), url_string.rfind('/RK'))
return unquote(url_string[start:end])
+
def request(query, params):
offset = (params['pageno'] - 1) * 10 + 1
if params['language'] == 'all':