2
0
mirror of https://github.com/searx/searx synced 2025-08-31 14:38:23 +00:00

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

[fix] fix xpath of google images
This commit is contained in:
Adam Tauber
2017-06-13 21:49:32 +02:00
committed by GitHub

View File

@@ -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