SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[mod] swisscows: use alphabet from `string` module instead of hardcoding alphabet
Bnyro98e10f9ab480
diff --git a/searx/engines/swisscows.py b/searx/engines/swisscows.pyindex ae10b065b..65d846b56 100644--- a/searx/engines/swisscows.py+++ b/searx/engines/swisscows.py@@ -9,6 +9,7 @@ import codecsimport hashlibimport jsonimport random+import stringfrom datetime import datetimefrom urllib.parse import urlencode@@ -43,8 +44,8 @@ paging = Truebase_url = "https://api.swisscows.com"-CAESAR_ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"-NONCE_ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~"+CAESAR_ALPHABET = string.ascii_uppercase+NONCE_ALPHABET = string.ascii_letters + string.digits + "-._~"time_range_map = {"day": "Day", "week": "Week", "month": "Month", "year": "Year"}