summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines')
-rwxr-xr-xsearx/engines/base.py4
-rw-r--r--searx/engines/bing.py6
-rw-r--r--searx/engines/duckduckgo.py4
-rw-r--r--searx/engines/startpage.py2
-rw-r--r--searx/engines/tineye.py2
-rw-r--r--searx/engines/voidlinux.py2
6 files changed, 10 insertions, 10 deletions
diff --git a/searx/engines/base.py b/searx/engines/base.py
index f81906482..4f99d6717 100755
--- a/searx/engines/base.py
+++ b/searx/engines/base.py
@@ -31,7 +31,7 @@ paging = True
number_of_results = 10
# shortcuts for advanced search
-shorcut_dict = {
+shortcut_dict = {
# user-friendly keywords
'format:': 'dcformat:',
'author:': 'dccreator:',
@@ -55,7 +55,7 @@ shorcut_dict = {
def request(query, params):
# replace shortcuts with API advanced search keywords
- for key, val in shorcut_dict.items():
+ for key, val in shortcut_dict.items():
query = re.sub(key, val, query)
# basic search
diff --git a/searx/engines/bing.py b/searx/engines/bing.py
index adb8e90a3..d4f46eaaf 100644
--- a/searx/engines/bing.py
+++ b/searx/engines/bing.py
@@ -10,7 +10,7 @@ On the `preference page`_ Bing offers a lot of languages an regions (see section
LANGUAGE and COUNTRY/REGION). The Language is the language of the UI, we need
in SearXNG to get the translations of data such as *"published last week"*.
-There is a description of the offical search-APIs_, unfortunately this is not
+There is a description of the official search-APIs_, unfortunately this is not
the API we can use or that bing itself would use. You can look up some things
in the API to get a better picture of bing, but the value specifications like
the market codes are usually outdated or at least no longer used by bing itself.
@@ -91,7 +91,7 @@ def request(query, params):
page = params.get('pageno', 1)
query_params = {
'q': query,
- # if arg 'pq' is missed, somtimes on page 4 we get results from page 1,
+ # if arg 'pq' is missed, sometimes on page 4 we get results from page 1,
# don't ask why it is only sometimes / its M$ and they have never been
# deterministic ;)
'pq': query,
@@ -177,7 +177,7 @@ def response(resp):
logger.debug('result error :\n%s', e)
if result_len and _page_offset(resp.search_params.get("pageno", 0)) > result_len:
- # Avoid reading more results than avalaible.
+ # Avoid reading more results than available.
# For example, if there is 100 results from some search and we try to get results from 120 to 130,
# Bing will send back the results from 0 to 10 and no error.
# If we compare results count with the first parameter of the request we can avoid this "invalid" results.
diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py
index 36125556b..82b37f9d1 100644
--- a/searx/engines/duckduckgo.py
+++ b/searx/engines/duckduckgo.py
@@ -42,7 +42,7 @@ about = {
}
send_accept_language_header = True
-"""DuckDuckGo-Lite tries to guess user's prefered language from the HTTP
+"""DuckDuckGo-Lite tries to guess user's preferred language from the HTTP
``Accept-Language``. Optional the user can select a region filter (but not a
language).
"""
@@ -402,7 +402,7 @@ def fetch_traits(engine_traits: EngineTraits):
"""Fetch languages & regions from DuckDuckGo.
SearXNG's ``all`` locale maps DuckDuckGo's "Alle regions" (``wt-wt``).
- DuckDuckGo's language "Browsers prefered language" (``wt_WT``) makes no
+ DuckDuckGo's language "Browsers preferred language" (``wt_WT``) makes no
sense in a SearXNG request since SearXNG's ``all`` will not add a
``Accept-Language`` HTTP header. The value in ``engine_traits.all_locale``
is ``wt-wt`` (the region).
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py
index 422ae7b20..f90cf2ac9 100644
--- a/searx/engines/startpage.py
+++ b/searx/engines/startpage.py
@@ -142,7 +142,7 @@ search_url = base_url + '/sp/search'
# specific xpath variables
# ads xpath //div[@id="results"]/div[@id="sponsored"]//div[@class="result"]
-# not ads: div[@class="result"] are the direct childs of div[@id="results"]
+# not ads: div[@class="result"] are the direct children of div[@id="results"]
search_form_xpath = '//form[@id="search"]'
"""XPath of Startpage's origin search form
diff --git a/searx/engines/tineye.py b/searx/engines/tineye.py
index c35799c69..20f6e41fd 100644
--- a/searx/engines/tineye.py
+++ b/searx/engines/tineye.py
@@ -208,7 +208,7 @@ def response(resp):
'title': backlink['image_name'],
'img_src': backlink['url'],
'format': tineye_match['image_format'],
- 'widht': tineye_match['width'],
+ 'width': tineye_match['width'],
'height': tineye_match['height'],
'publishedDate': backlink['crawl_date'],
}
diff --git a/searx/engines/voidlinux.py b/searx/engines/voidlinux.py
index 0d807ace4..e38abd862 100644
--- a/searx/engines/voidlinux.py
+++ b/searx/engines/voidlinux.py
@@ -32,7 +32,7 @@ void_arch = 'x86_64'
"""Default architecture to search for. For valid values see :py:obj:`ARCH_RE`"""
ARCH_RE = re.compile('aarch64-musl|armv6l-musl|armv7l-musl|x86_64-musl|aarch64|armv6l|armv7l|i686|x86_64')
-"""Regular expresion that match a architecture in the query string."""
+"""Regular expression that match a architecture in the query string."""
def request(query, params):