summaryrefslogtreecommitdiff
path: root/searx/engines/gentoo.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-03-11 07:45:08 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-03-11 14:55:38 +0100
commit8205f170ff983e5240d32dc17d7fdb526ebe5fe7 (patch)
tree536acda827bcdd1a6668714855e6f6c3ba6b68d4 /searx/engines/gentoo.py
parent707d6270c80426b54aeaa0ac0acd80ded45df533 (diff)
downloadsearxng-8205f170ff983e5240d32dc17d7fdb526ebe5fe7.tar.gz
searxng-8205f170ff983e5240d32dc17d7fdb526ebe5fe7.zip
[mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/gentoo.py')
-rw-r--r--searx/engines/gentoo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/gentoo.py b/searx/engines/gentoo.py
index cf193c2a3..4a4e085ba 100644
--- a/searx/engines/gentoo.py
+++ b/searx/engines/gentoo.py
@@ -107,7 +107,7 @@ def request(query, params):
def response(resp):
# get the base URL for the language in which request was made
language = locale_to_lang_code(resp.search_params['language'])
- base_url = get_lang_urls(language)['base']
+ url = get_lang_urls(language)['base']
results = []
@@ -116,7 +116,7 @@ def response(resp):
# parse results
for result in dom.xpath(xpath_results):
link = result.xpath(xpath_link)[0]
- href = urljoin(base_url, link.attrib.get('href'))
+ href = urljoin(url, link.attrib.get('href'))
title = extract_text(link)
content = extract_text(result.xpath(xpath_content))