summaryrefslogtreecommitdiff
path: root/searx/engines/xpath.py
diff options
context:
space:
mode:
authora01200356 <a01200356@itesm.mx>2016-01-18 11:29:45 -0600
committera01200356 <a01200356@itesm.mx>2016-01-18 11:29:45 -0600
commit51278ee0be0af0d037d467dc0e22cb844a79e5f8 (patch)
tree135bae8477eeb9fe5eef68f784c16c9b554e54f3 /searx/engines/xpath.py
parentc2e034f52a31d4eb84b01cafb3af70ed55dad792 (diff)
parent09b7673fbd271349b6878959bd2e1ae846981e13 (diff)
Merge branch 'master' of https://github.com/asciimoo/searx
Diffstat (limited to 'searx/engines/xpath.py')
-rw-r--r--searx/engines/xpath.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py
index 1a599dc0a..f51634be0 100644
--- a/searx/engines/xpath.py
+++ b/searx/engines/xpath.py
@@ -43,7 +43,7 @@ def extract_url(xpath_results, search_url):
if url.startswith('//'):
# add http or https to this kind of url //example.com/
parsed_search_url = urlparse(search_url)
- url = parsed_search_url.scheme+url
+ url = parsed_search_url.scheme + url
elif url.startswith('/'):
# fix relative url to the search engine
url = urljoin(search_url, url)
@@ -69,7 +69,7 @@ def normalize_url(url):
p = parsed_url.path
mark = p.find('/**')
if mark != -1:
- return unquote(p[mark+3:]).decode('utf-8')
+ return unquote(p[mark + 3:]).decode('utf-8')
return url