diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-01-16 19:05:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-16 19:05:17 +0100 |
| commit | 1d13ad8452e20fb69b77caf6bb9358f82e3934ba (patch) | |
| tree | 2085c05e8ba319411a4b729c589e660d973a5c7c /searx/engines/base.py | |
| parent | 5a511f0d620038b8e94c581bcfd3c987082b9414 (diff) | |
| parent | a4dcfa025c690dc4c824b2261242748a331a97e8 (diff) | |
Merge pull request #2460 from dalf/engine-about
[enh] engines: add about variable
Diffstat (limited to 'searx/engines/base.py')
| -rwxr-xr-x | searx/engines/base.py | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/searx/engines/base.py b/searx/engines/base.py index 3648d7ed0..463274681 100755 --- a/searx/engines/base.py +++ b/searx/engines/base.py @@ -1,16 +1,6 @@ -#!/usr/bin/env python - +# SPDX-License-Identifier: AGPL-3.0-or-later """ BASE (Scholar publications) - - @website https://base-search.net - @provide-api yes with authorization (https://api.base-search.net/) - - @using-api yes - @results XML - @stable ? - @parse url, title, publishedDate, content - More info on api: http://base-search.net/about/download/base_interface.pdf """ from urllib.parse import urlencode @@ -19,6 +9,15 @@ from datetime import datetime import re from searx.utils import searx_useragent +# about +about = { + "website": 'https://base-search.net', + "wikidata_id": 'Q448335', + "official_api_documentation": 'https://api.base-search.net/', + "use_official_api": True, + "require_api_key": False, + "results": 'XML', +} categories = ['science'] |