on master help sign in
fix xpath expressions for urban dictionary
commitbaeb3ff9112e0a178733f20bd55ed4a4d0088a75 authorfirebovine <firebovine@gmail.com> dateSat 10 Sep 2016, 17:08 (10 years ago) parent8d4dd3c
1 file changed+3−3
searx/settings.yml+3−3
searx/settings.yml+3−3
@@ -450,9 +450,9 @@ engines:
450450# - name : urbandictionary
451451# engine : xpath
452452# search_url : http://www.urbandictionary.com/define.php?term={query}
453−# url_xpath : //div[@class="word"]//a/@href
454−# title_xpath : //div[@class="word"]//a
455−# content_xpath : //div[@class="definition"]
453+# url_xpath : //*[@class="word"]/@href
454+# title_xpath : //*[@class="def-header"]
455+# content_xpath : //*[@class="meaning"]
456456# shortcut : ud
457457
458458 - name : yahoo