Selaa lähdekoodia

Adding Urban Dictionary xpath engine

Lorenzo J. Lucchini 8 vuotta sitten
vanhempi
commit
05206f86e3
1 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  1. 8
    0
      searx/settings.yml

+ 8
- 0
searx/settings.yml Näytä tiedosto

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