summaryrefslogtreecommitdiff
path: root/searxng_extra/update/update_external_bangs.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-01-03 12:40:06 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2022-01-05 16:09:40 +0100
commitffea5d8ef5540bc4be08b2b26e1819d5401f854d (patch)
treeb2285d42d9ed6debec82ebd25fca31358a452794 /searxng_extra/update/update_external_bangs.py
parentb630c5d7bc0bf5a4281ad402bb32adc7f6ab257f (diff)
downloadsearxng-ffea5d8ef5540bc4be08b2b26e1819d5401f854d.tar.gz
searxng-ffea5d8ef5540bc4be08b2b26e1819d5401f854d.zip
[docs] add documentation for the scripts in searxng_extra/update
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searxng_extra/update/update_external_bangs.py')
-rwxr-xr-xsearxng_extra/update/update_external_bangs.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/searxng_extra/update/update_external_bangs.py b/searxng_extra/update/update_external_bangs.py
index d5c6b585a..be3aade0f 100755
--- a/searxng_extra/update/update_external_bangs.py
+++ b/searxng_extra/update/update_external_bangs.py
@@ -1,17 +1,20 @@
#!/usr/bin/env python
# lint: pylint
# SPDX-License-Identifier: AGPL-3.0-or-later
-"""
-Update searx/data/external_bangs.json using the duckduckgo bangs.
+"""Update :origin:`searx/data/external_bangs.json` using the duckduckgo bangs
+(:origin:`CI Update data ... <.github/workflows/data-update.yml>`).
+
+https://duckduckgo.com/newbang loads:
-https://duckduckgo.com/newbang loads
* a javascript which provides the bang version ( https://duckduckgo.com/bv1.js )
* a JSON file which contains the bangs ( https://duckduckgo.com/bang.v260.js for example )
This script loads the javascript, then the bangs.
-The javascript URL may change in the future ( for example https://duckduckgo.com/bv2.js ),
-but most probably it will requires to update RE_BANG_VERSION
+The javascript URL may change in the future ( for example
+https://duckduckgo.com/bv2.js ), but most probably it will requires to update
+RE_BANG_VERSION
+
"""
# pylint: disable=C0116