summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2014-03-10 16:46:11 +0100
committerAdam Tauber <asciimoo@gmail.com>2014-03-10 16:46:11 +0100
commit3acdf3f9a172c68f22518204abe9d33ba2dea428 (patch)
treec015d8d387575b6fb8633c89c1c9767105595e66 /searx
parent0fc481f47ed8116b3acd4dd11c0527994582d526 (diff)
[fix] pep8
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/yahoo.py2
1 files changed, 2 insertions, 0 deletions
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':