summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorjames-still <107592590+james-still@users.noreply.github.com>2022-07-24 15:52:28 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2022-07-24 19:14:26 +0200
commit2516e21c58a76fa40e5d0c8183974032eaaeac3e (patch)
tree85f51b6c288ddb729a50ad0438f4339b1f3446a5 /searx
parent3ff576ea72ac1c91bbc23f7f3d8ac3b918fc6a95 (diff)
downloadsearxng-2516e21c58a76fa40e5d0c8183974032eaaeac3e.tar.gz
searxng-2516e21c58a76fa40e5d0c8183974032eaaeac3e.zip
[fix] emojipedia - update XPath to be relative
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/emojipedia.py2
1 files changed, 1 insertions, 1 deletions
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))