summaryrefslogtreecommitdiff
path: root/searx/engines/google_images.py
diff options
context:
space:
mode:
authorNoémi Ványi <sitbackandwait@gmail.com>2017-06-13 19:47:56 +0200
committerNoémi Ványi <sitbackandwait@gmail.com>2017-06-13 19:47:56 +0200
commitc361811cb563ee223a336ab1bbf17ec740b86433 (patch)
tree870fb742f2737c62fbadd895f59b88c9e0da2cfc /searx/engines/google_images.py
parent6d76d9b20255d8bd0a0cfd1620ec07047a28bff1 (diff)
downloadsearxng-c361811cb563ee223a336ab1bbf17ec740b86433.tar.gz
searxng-c361811cb563ee223a336ab1bbf17ec740b86433.zip
[fix] fix xpath of google images
Diffstat (limited to 'searx/engines/google_images.py')
-rw-r--r--searx/engines/google_images.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py
index 9692f4b82..a380170ca 100644
--- 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