ソースを参照

[fix] sanitize results II.

asciimoo 11 年 前
コミット
1e5cbc5f9e
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1
    1
      searx/engines/startpage.py

+ 1
- 1
searx/engines/startpage.py ファイルの表示

@@ -24,7 +24,7 @@ def response(resp):
24 24
         url = urljoin(base_url, link.attrib.get('href'))
25 25
         parsed_url = urlparse(url)
26 26
         # TODO better google link detection
27
-        if parsed_url.netloc.find('google.com') >= 0:
27
+        if parsed_url.netloc.find('www.google.com') >= 0:
28 28
             continue
29 29
         title = ' '.join(link.xpath('.//text()'))
30 30
         content = escape(' '.join(result.xpath('.//p[@class="desc"]//text()')))