diff options
author | james-still <107592590+james-still@users.noreply.github.com> | 2022-07-24 15:52:28 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-07-24 19:14:26 +0200 |
commit | 2516e21c58a76fa40e5d0c8183974032eaaeac3e (patch) | |
tree | 85f51b6c288ddb729a50ad0438f4339b1f3446a5 /searx | |
parent | 3ff576ea72ac1c91bbc23f7f3d8ac3b918fc6a95 (diff) | |
download | searxng-2516e21c58a76fa40e5d0c8183974032eaaeac3e.tar.gz searxng-2516e21c58a76fa40e5d0c8183974032eaaeac3e.zip |
[fix] emojipedia - update XPath to be relative
Diffstat (limited to 'searx')
-rw-r--r-- | searx/engines/emojipedia.py | 2 |
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)) |