summaryrefslogtreecommitdiff
path: root/searx/engines/google_images.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/google_images.py')
-rw-r--r--searx/engines/google_images.py25
1 files changed, 15 insertions, 10 deletions
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py
index 1c0e62f5c..85963a16f 100644
--- a/searx/engines/google_images.py
+++ b/searx/engines/google_images.py
@@ -1,13 +1,15 @@
-## Google (Images)
-#
-# @website https://www.google.com
-# @provide-api yes (https://developers.google.com/web-search/docs/),
-# deprecated!
-#
-# @using-api yes
-# @results JSON
-# @stable yes (but deprecated)
-# @parse url, title, img_src
+"""
+ Google (Images)
+
+ @website https://www.google.com
+ @provide-api yes (https://developers.google.com/web-search/docs/),
+ deprecated!
+
+ @using-api yes
+ @results JSON
+ @stable yes (but deprecated)
+ @parse url, title, img_src
+"""
from urllib import urlencode, unquote
from json import loads
@@ -56,6 +58,9 @@ def response(resp):
continue
thumbnail_src = result['tbUrl']
+ # http to https
+ thumbnail_src = thumbnail_src.replace("http://", "https://")
+
# append result
results.append({'url': href,
'title': title,