瀏覽代碼

[mod] image results removed from google engine

Adam Tauber 10 年之前
父節點
當前提交
0f4cb32bf1
共有 1 個檔案被更改,包括 5 行新增2 行删除
  1. 5
    2
      searx/engines/google.py

+ 5
- 2
searx/engines/google.py 查看文件

85
                 # remove the link to google news
85
                 # remove the link to google news
86
                 continue
86
                 continue
87
 
87
 
88
+            # images result
88
             if (parsed_url.netloc == google_hostname
89
             if (parsed_url.netloc == google_hostname
89
                     and parsed_url.path == images_path):
90
                     and parsed_url.path == images_path):
90
-                # images result
91
-                results = results + parse_images(result)
91
+                # only thumbnail image provided,
92
+                # so skipping image results
93
+                # results = results + parse_images(result)
94
+                pass
92
             else:
95
             else:
93
                 # normal result
96
                 # normal result
94
                 content = extract_text(result.xpath(content_xpath)[0])
97
                 content = extract_text(result.xpath(content_xpath)[0])