diff options
| author | Martin Fischer <martin@push-f.com> | 2022-01-05 19:46:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-05 19:46:00 +0100 |
| commit | 160f3e022e1774f3a25a9f5e0cf36ec34976cdad (patch) | |
| tree | 1f935d47da7f89298dc4882cfd875d0dea3e433e /searxng_extra/update/update_external_bangs.py | |
| parent | 9004e84b6e33c0a64fc6f4413734c9bdfdb118f6 (diff) | |
| parent | 295876abaa93b8dea44dc0beaf8eb2596da69aed (diff) | |
Merge pull request #683 from return42/fix-doc
Document & Pylint scripts in searxng_extra/update
Diffstat (limited to 'searxng_extra/update/update_external_bangs.py')
| -rwxr-xr-x | searxng_extra/update/update_external_bangs.py | 13 |
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 |