summaryrefslogtreecommitdiff
path: root/searxng_extra/update/update_currencies.py
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-01-05 19:46:00 +0100
committerGitHub <noreply@github.com>2022-01-05 19:46:00 +0100
commit160f3e022e1774f3a25a9f5e0cf36ec34976cdad (patch)
tree1f935d47da7f89298dc4882cfd875d0dea3e433e /searxng_extra/update/update_currencies.py
parent9004e84b6e33c0a64fc6f4413734c9bdfdb118f6 (diff)
parent295876abaa93b8dea44dc0beaf8eb2596da69aed (diff)
Merge pull request #683 from return42/fix-doc
Document & Pylint scripts in searxng_extra/update
Diffstat (limited to 'searxng_extra/update/update_currencies.py')
-rwxr-xr-xsearxng_extra/update/update_currencies.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/searxng_extra/update/update_currencies.py b/searxng_extra/update/update_currencies.py
index 3373e2455..e51692e72 100755
--- a/searxng_extra/update/update_currencies.py
+++ b/searxng_extra/update/update_currencies.py
@@ -1,13 +1,22 @@
#!/usr/bin/env python
+# lint: pylint
# SPDX-License-Identifier: AGPL-3.0-or-later
+"""Fetch currencies from :origin:`searx/engines/wikidata.py` engine.
+
+Output file: :origin:`searx/data/currencies.json` (:origin:`CI Update data ...
+<.github/workflows/data-update.yml>`).
+
+"""
+
+# pylint: disable=invalid-name
+
import re
import unicodedata
import json
# set path
-from sys import path
-from os.path import realpath, dirname, join
+from os.path import join
from searx import searx_dir
from searx.locales import LOCALE_NAMES