commit: 39e828df344059c8f871876ba3b00137dc82b630
parent: 6d76d9b20255d8bd0a0cfd1620ec07047a28bff1
Author: Adam Tauber <asciimoo@gmail.com>
Date: Tue, 13 Jun 2017 21:49:32 +0200
Merge pull request #944 from kvch/fix-google-images
[fix] fix xpath of google images
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py
@@ -74,7 +74,7 @@ def response(resp):
for result in dom.xpath('//div[@data-ved]'):
try:
- metadata = loads(''.join(result.xpath('./div[@class="rg_meta"]/text()')))
+ metadata = loads(''.join(result.xpath('./div[contains(@class, "rg_meta")]/text()')))
except:
continue