diff options
author | Alexandre Flament <alex@al-f.net> | 2021-01-13 11:31:25 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-01-14 20:57:17 +0100 |
commit | a4dcfa025c690dc4c824b2261242748a331a97e8 (patch) | |
tree | 2085c05e8ba319411a4b729c589e660d973a5c7c /searx/engines/google_images.py | |
parent | 5a511f0d620038b8e94c581bcfd3c987082b9414 (diff) | |
download | searxng-a4dcfa025c690dc4c824b2261242748a331a97e8.tar.gz searxng-a4dcfa025c690dc4c824b2261242748a331a97e8.zip |
[enh] engines: add about variable
move meta information from comment to the about variable
so the preferences, the documentation can show these information
Diffstat (limited to 'searx/engines/google_images.py')
-rw-r--r-- | searx/engines/google_images.py | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py index 9ef1be753..8c2cb9d2a 100644 --- a/searx/engines/google_images.py +++ b/searx/engines/google_images.py @@ -1,14 +1,6 @@ # SPDX-License-Identifier: AGPL-3.0-or-later """Google (Images) -:website: https://images.google.com (redirected to subdomain www.) -:provide-api: yes (https://developers.google.com/custom-search/) -:using-api: not the offical, since it needs registration to another service -:results: HTML -:stable: no -:template: images.html -:parse: url, title, content, source, thumbnail_src, img_src - For detailed description of the *REST-full* API see: `Query Parameter Definitions`_. @@ -18,10 +10,6 @@ Definitions`_. ``data:` scheme).:: 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 - """ from urllib.parse import urlencode, urlparse, unquote @@ -39,6 +27,16 @@ from searx.engines.google import ( logger = logger.getChild('google images') +# about +about = { + "website": 'https://images.google.com/', + "wikidata_id": 'Q521550', + "official_api_documentation": 'https://developers.google.com/custom-search/docs/xml_results#WebSearch_Query_Parameter_Definitions', # NOQA + "use_official_api": False, + "require_api_key": False, + "results": 'HTML', +} + # engine dependent config categories = ['images'] |