瀏覽代碼

Merge pull request #944 from kvch/fix-google-images

[fix] fix xpath of google images
Adam Tauber 7 年之前
父節點
當前提交
39e828df34
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      searx/engines/google_images.py

+ 1
- 1
searx/engines/google_images.py 查看文件

@@ -74,7 +74,7 @@ def response(resp):
74 74
     for result in dom.xpath('//div[@data-ved]'):
75 75
 
76 76
         try:
77
-            metadata = loads(''.join(result.xpath('./div[@class="rg_meta"]/text()')))
77
+            metadata = loads(''.join(result.xpath('./div[contains(@class, "rg_meta")]/text()')))
78 78
         except:
79 79
             continue
80 80