Browse Source

Adding Urban Dictionary xpath engine

Lorenzo J. Lucchini 8 years ago
parent
commit
05206f86e3
1 changed files with 8 additions and 0 deletions
  1. 8 0
      searx/settings.yml

+ 8 - 0
searx/settings.yml

@@ -494,6 +494,14 @@ engines:
     engine : wolframalpha_noapi
     engine : wolframalpha_noapi
     timeout: 6.0
     timeout: 6.0
     categories : science
     categories : science
+    
+  - name : urbandictionary
+    engine        : xpath
+    search_url    : http://www.urbandictionary.com/define.php?term={query}
+    url_xpath     : //*[@class="word"]/@href
+    title_xpath   : //*[@class="word"]
+    content_xpath : //*[@class="meaning"]
+    shortcut : ud
 
 
   - name : dictzone
   - name : dictzone
     engine : dictzone
     engine : dictzone