From 2516e21c58a76fa40e5d0c8183974032eaaeac3e Mon Sep 17 00:00:00 2001 From: james-still <107592590+james-still@users.noreply.github.com> Date: Sun, 24 Jul 2022 15:52:28 +0100 Subject: [PATCH] [fix] emojipedia - update XPath to be relative --- searx/engines/emojipedia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/emojipedia.py b/searx/engines/emojipedia.py index b89267c0d..020bf689b 100644 --- a/searx/engines/emojipedia.py +++ b/searx/engines/emojipedia.py @@ -47,7 +47,7 @@ def response(resp): dom = html.fromstring(resp.text) - for result in eval_xpath_list(dom, "/html/body/div[2]/div[1]/ol/li"): + for result in eval_xpath_list(dom, "//ol[@class='search-results']/li"): extracted_desc = extract_text(eval_xpath_getindex(result, './/p', 0))