summaryrefslogtreecommitdiff
path: root/searx/engines/yahoo.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2014-03-04 14:19:59 +0100
committerAdam Tauber <asciimoo@gmail.com>2014-03-04 14:19:59 +0100
commitee1ffbc87f0b2471e33b14561002c400cd8db861 (patch)
tree72063c0aa6a257ef6fcacef88d746b0fbaf6f0a7 /searx/engines/yahoo.py
parent2d42208e835105119db3bddce1efdf7b90757985 (diff)
downloadsearxng-ee1ffbc87f0b2471e33b14561002c400cd8db861.tar.gz
searxng-ee1ffbc87f0b2471e33b14561002c400cd8db861.zip
[fix] yahoo engine url extraction
Diffstat (limited to 'searx/engines/yahoo.py')
-rw-r--r--searx/engines/yahoo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/yahoo.py b/searx/engines/yahoo.py
index 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])