[fix] sanitize results II.
commit1e5cbc5f9e3961ed60758e4df93c3bc3e647b10b
authorasciimoo <asciimoo@gmail.com>
dateSat 19 Oct 2013, 20:13 (13 years ago)
parentd2da511
searx/engines/startpage.py+1−1
@@ -24,7 +24,7 @@ def response(resp):
2424 url = urljoin(base_url, link.attrib.get('href'))
2525 parsed_url = urlparse(url)
2626 # TODO better google link detection
27− if parsed_url.netloc.find('google.com') >= 0:
27+ if parsed_url.netloc.find('www.google.com') >= 0:
2828 continue
2929 title = ' '.join(link.xpath('.//text()'))
3030 content = escape(' '.join(result.xpath('.//p[@class="desc"]//text()')))