logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 7965da55a7a3f494722750011b2a6d5110956750
parent: b69fb84b9947611b73a04db5c63eab30221a93fc
Author: asciimoo <asciimoo@gmail.com>
Date:   Sun, 27 Oct 2013 12:01:03 +0100

[fix] urlparsing fix

Diffstat:

Msearx/engines/xpath.py2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py @@ -32,6 +32,8 @@ def extract_url(xpath_results): parsed_url = urlparse(url) if not parsed_url.netloc: raise Exception('Cannot parse url') + if not parsed_url.path: + url += '/' return url def request(query, params):