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/arxiv.py | |
| parent | 5a511f0d620038b8e94c581bcfd3c987082b9414 (diff) | |
[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/arxiv.py')
| -rw-r--r-- | searx/engines/arxiv.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/searx/engines/arxiv.py b/searx/engines/arxiv.py index 1190de363..09ea07ea5 100644 --- a/searx/engines/arxiv.py +++ b/searx/engines/arxiv.py @@ -1,20 +1,21 @@ -#!/usr/bin/env python - +# SPDX-License-Identifier: AGPL-3.0-or-later """ ArXiV (Scientific preprints) - @website https://arxiv.org - @provide-api yes (export.arxiv.org/api/query) - @using-api yes - @results XML-RSS - @stable yes - @parse url, title, publishedDate, content - More info on api: https://arxiv.org/help/api/user-manual """ from lxml import html from datetime import datetime from searx.utils import eval_xpath_list, eval_xpath_getindex +# about +about = { + "website": 'https://arxiv.org', + "wikidata_id": 'Q118398', + "official_api_documentation": 'https://arxiv.org/help/api', + "use_official_api": True, + "require_api_key": False, + "results": 'XML-RSS', +} categories = ['science'] paging = True |