From c361811cb563ee223a336ab1bbf17ec740b86433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Tue, 13 Jun 2017 19:47:56 +0200 Subject: [PATCH] [fix] fix xpath of google images --- searx/engines/google_images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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