summaryrefslogtreecommitdiff
path: root/searx/engines/startpage.py
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2013-10-19 20:13:48 +0200
committerasciimoo <asciimoo@gmail.com>2013-10-19 20:13:48 +0200
commit1e5cbc5f9e3961ed60758e4df93c3bc3e647b10b (patch)
treed19c943c2f305539dd8d32e8c4b8bf47886a6be0 /searx/engines/startpage.py
parentd2da51179ab9f55928b15fd97ba2d8ecc5099552 (diff)
downloadsearxng-1e5cbc5f9e3961ed60758e4df93c3bc3e647b10b.tar.gz
searxng-1e5cbc5f9e3961ed60758e4df93c3bc3e647b10b.zip
[fix] sanitize results II.
Diffstat (limited to 'searx/engines/startpage.py')
-rw-r--r--searx/engines/startpage.py2
1 files changed, 1 insertions, 1 deletions
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()')))