mirror of
https://github.com/searxng/searxng.git
synced 2024-11-19 09:21:00 +00:00
[fix] sanitize results II.
This commit is contained in:
parent
d2da51179a
commit
1e5cbc5f9e
1 changed files with 1 additions and 1 deletions
|
@ -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()')))
|
||||
|
|
Loading…
Reference in a new issue