summaryrefslogtreecommitdiff
path: root/searx/engines/yandex.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2016-12-09 23:11:45 +0100
committerGitHub <noreply@github.com>2016-12-09 23:11:45 +0100
commite48f07a367e55bf8aa881902b977bd7ce1cd2bb6 (patch)
tree8b285b2dd483006d08c03b9fec49cba49ff16a87 /searx/engines/yandex.py
parent219f047bf359ce94397241b875639f3aaddb0fe5 (diff)
parentd80fb2c8e8995facb3a25c152c47a93eecf1fee4 (diff)
Merge branch 'master' into searchpy2
Diffstat (limited to 'searx/engines/yandex.py')
-rw-r--r--searx/engines/yandex.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/engines/yandex.py b/searx/engines/yandex.py
index be3ec36ce..938fdd184 100644
--- a/searx/engines/yandex.py
+++ b/searx/engines/yandex.py
@@ -9,7 +9,6 @@
@parse url, title, content
"""
-from cgi import escape
from urllib import urlencode
from lxml import html
from searx.search import logger
@@ -52,8 +51,8 @@ def response(resp):
for result in dom.xpath(results_xpath):
try:
res = {'url': result.xpath(url_xpath)[0],
- 'title': escape(''.join(result.xpath(title_xpath))),
- 'content': escape(''.join(result.xpath(content_xpath)))}
+ 'title': ''.join(result.xpath(title_xpath)),
+ 'content': ''.join(result.xpath(content_xpath))}
except:
logger.exception('yandex parse crash')
continue