瀏覽代碼

Adding Urban Dictionary xpath engine

Lorenzo J. Lucchini 8 年之前
父節點
當前提交
05206f86e3
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. 8
    0
      searx/settings.yml

+ 8
- 0
searx/settings.yml 查看文件

@@ -494,6 +494,14 @@ engines:
494 494
     engine : wolframalpha_noapi
495 495
     timeout: 6.0
496 496
     categories : science
497
+    
498
+  - name : urbandictionary
499
+    engine        : xpath
500
+    search_url    : http://www.urbandictionary.com/define.php?term={query}
501
+    url_xpath     : //*[@class="word"]/@href
502
+    title_xpath   : //*[@class="word"]
503
+    content_xpath : //*[@class="meaning"]
504
+    shortcut : ud
497 505
 
498 506
   - name : dictzone
499 507
     engine : dictzone