[mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2024-03-11 07:45:08 +01:00 committed by Markus Heiser
parent 707d6270c8
commit 8205f170ff
155 changed files with 166 additions and 258 deletions

View file

@ -18,7 +18,7 @@ about = {
}
# engine dependent config
categories = ['general'] # TODO , 'images', 'music', 'videos', 'files'
categories = ['general'] # 'images', 'music', 'videos', 'files'
paging = False
number_of_results = 5
@ -31,8 +31,8 @@ search_url = (
'&{query}'
# fmt: on
)
# TODO '&startRecord={offset}'
# TODO '&maximumRecords={limit}'
# '&startRecord={offset}'
# '&maximumRecords={limit}'
# do search-request
@ -54,7 +54,7 @@ def response(resp):
for r in eval_xpath(doc, '//div[@class="search_quickresult"]/ul/li'):
try:
res_url = eval_xpath(r, './/a[@class="wikilink1"]/@href')[-1]
except:
except: # pylint: disable=bare-except
continue
if not res_url:
@ -76,7 +76,7 @@ def response(resp):
# append result
results.append({'title': title, 'content': content, 'url': base_url + res_url})
except:
except: # pylint: disable=bare-except
continue
if not res_url: