diff options
author | asciimoo <asciimoo@gmail.com> | 2013-10-19 20:13:48 +0200 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2013-10-19 20:13:48 +0200 |
commit | 1e5cbc5f9e3961ed60758e4df93c3bc3e647b10b (patch) | |
tree | d19c943c2f305539dd8d32e8c4b8bf47886a6be0 /searx/engines/startpage.py | |
parent | d2da51179ab9f55928b15fd97ba2d8ecc5099552 (diff) | |
download | searxng-1e5cbc5f9e3961ed60758e4df93c3bc3e647b10b.tar.gz searxng-1e5cbc5f9e3961ed60758e4df93c3bc3e647b10b.zip |
[fix] sanitize results II.
Diffstat (limited to 'searx/engines/startpage.py')
-rw-r--r-- | searx/engines/startpage.py | 2 |
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()'))) |