summaryrefslogtreecommitdiff
path: root/searx/engines/bing_images.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-12-27 10:16:20 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-12-27 10:16:20 +0100
commitd84226bf63757b1d4245ab26e9c081daf42389aa (patch)
tree9c0456ad1a1d9d375311ccd8c9bd3eafd0779114 /searx/engines/bing_images.py
parent3d96a9839a12649874b6d4cf9466bd3616b0a03c (diff)
downloadsearxng-d84226bf63757b1d4245ab26e9c081daf42389aa.tar.gz
searxng-d84226bf63757b1d4245ab26e9c081daf42389aa.zip
[fix] issues reported by pylint
Fix pylint issues from commit (3d96a983) [format.python] initial formatting of the python code Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/bing_images.py')
-rw-r--r--searx/engines/bing_images.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/searx/engines/bing_images.py b/searx/engines/bing_images.py
index 246d37a30..73b61b896 100644
--- a/searx/engines/bing_images.py
+++ b/searx/engines/bing_images.py
@@ -6,13 +6,13 @@
from urllib.parse import urlencode
from lxml import html
from json import loads
-from searx.utils import match_language
+from searx.utils import match_language
from searx.engines.bing import language_aliases
-from searx.engines.bing import (
+from searx.engines.bing import ( # pylint: disable=unused-import
_fetch_supported_languages,
supported_languages_url,
-) # NOQA # pylint: disable=unused-import
+)
# about
about = {
@@ -34,7 +34,15 @@ number_of_results = 28
# search-url
base_url = 'https://www.bing.com/'
-search_string = 'images/search' '?{query}' '&count={count}' '&first={first}' '&tsc=ImageHoverTitle'
+search_string = (
+ # fmt: off
+ 'images/search'
+ '?{query}'
+ '&count={count}'
+ '&first={first}'
+ '&tsc=ImageHoverTitle'
+ # fmt: on
+)
time_range_string = '&qft=+filterui:age-lt{interval}'
time_range_dict = {'day': '1440', 'week': '10080', 'month': '43200', 'year': '525600'}