From baeb3ff9112e0a178733f20bd55ed4a4d0088a75 Mon Sep 17 00:00:00 2001 From: firebovine Date: Sat, 10 Sep 2016 17:08:34 -0400 Subject: [PATCH] fix xpath expressions for urban dictionary --- searx/settings.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/searx/settings.yml b/searx/settings.yml index 4969c4ac6..308a0bd45 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -450,9 +450,9 @@ engines: # - name : urbandictionary # engine : xpath # search_url : http://www.urbandictionary.com/define.php?term={query} -# url_xpath : //div[@class="word"]//a/@href -# title_xpath : //div[@class="word"]//a -# content_xpath : //div[@class="definition"] +# url_xpath : //*[@class="word"]/@href +# title_xpath : //*[@class="def-header"] +# content_xpath : //*[@class="meaning"] # shortcut : ud - name : yahoo