Explorar el Código

Adding Urban Dictionary xpath engine

Lorenzo J. Lucchini hace 8 años
padre
commit
05206f86e3
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8
    0
      searx/settings.yml

+ 8
- 0
searx/settings.yml Ver fichero

@@ -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