From 1e5cbc5f9e3961ed60758e4df93c3bc3e647b10b Mon Sep 17 00:00:00 2001 From: asciimoo Date: Sat, 19 Oct 2013 20:13:48 +0200 Subject: [PATCH] [fix] sanitize results II. --- searx/engines/startpage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py index 143bc55b3..2386dcabc 100644 --- a/searx/engines/startpage.py +++ b/searx/engines/startpage.py @@ -24,7 +24,7 @@ def response(resp): url = urljoin(base_url, link.attrib.get('href')) parsed_url = urlparse(url) # TODO better google link detection - if parsed_url.netloc.find('google.com') >= 0: + if parsed_url.netloc.find('www.google.com') >= 0: continue title = ' '.join(link.xpath('.//text()')) content = escape(' '.join(result.xpath('.//p[@class="desc"]//text()')))