on master help sign in
fix xpath expressions for urban dictionary
baeb3fffirebovine
searx/settings.yml+3−3
@@ -450,9 +450,9 @@ engines:
450# - name : urbandictionary
450# - name : urbandictionary
451# engine : xpath
451# engine : xpath
452# search_url : http://www.urbandictionary.com/define.php?term={query}
452# search_url : http://www.urbandictionary.com/define.php?term={query}
453−# url_xpath : //div[@class="word"]//a/@href
453+# url_xpath : //*[@class="word"]/@href
454−# title_xpath : //div[@class="word"]//a
454+# title_xpath : //*[@class="def-header"]
455−# content_xpath : //div[@class="definition"]
455+# content_xpath : //*[@class="meaning"]
456# shortcut : ud
456# shortcut : ud
457
457
458 - name : yahoo
458 - name : yahoo