summaryrefslogtreecommitdiff
path: root/searx/engines/gentoo.py
diff options
context:
space:
mode:
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))