Browse Source

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

[fix] fix xpath of google images
Adam Tauber 7 years ago
parent
commit
39e828df34
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      searx/engines/google_images.py

+ 1
- 1
searx/engines/google_images.py View File

74
     for result in dom.xpath('//div[@data-ved]'):
74
     for result in dom.xpath('//div[@data-ved]'):
75
 
75
 
76
         try:
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
         except:
78
         except:
79
             continue
79
             continue
80
 
80