summaryrefslogtreecommitdiff
path: root/searx/engines/google_images.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-06-21 18:15:40 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-06-21 18:25:52 +0200
commit0ef6aa51265c41a77d504f858c3c0c13eff448c2 (patch)
treeb3fea3bd4029eb05e081f8d035a77a86a04ddcda /searx/engines/google_images.py
parent05e90f2e57043d8ca425e43ed288d45027bdf0ec (diff)
downloadsearxng-0ef6aa51265c41a77d504f858c3c0c13eff448c2.tar.gz
searxng-0ef6aa51265c41a77d504f858c3c0c13eff448c2.zip
[docs] add documentation from the sources of the google engines
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/google_images.py')
-rw-r--r--searx/engines/google_images.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py
index e7382a6fe..c17227a64 100644
--- a/searx/engines/google_images.py
+++ b/searx/engines/google_images.py
@@ -1,19 +1,14 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
# lint: pylint
-"""Google (Images)
+"""This is the implementation of the google images engine.
-For detailed description of the *REST-full* API see: `Query Parameter
-Definitions`_.
-
-.. _admonition:: Content-Security-Policy (CSP)
+.. admonition:: Content-Security-Policy (CSP)
This engine needs to allow images from the `data URLs`_ (prefixed with the
- ``data:` scheme).::
+ ``data:`` scheme)::
- Header set Content-Security-Policy "img-src 'self' data: ;"
+ Header set Content-Security-Policy "img-src 'self' data: ;"
-.. _Query Parameter Definitions:
- https://developers.google.com/custom-search/docs/xml_results#WebSearch_Query_Parameter_Definitions
.. _data URLs:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
"""