소스 검색

Merge pull request #694 from firebovine/urbandictionary

fix xpath expressions for urban dictionary
Adam Tauber 8 년 전
부모
커밋
390ad59bfc
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      searx/settings.yml

+ 3
- 3
searx/settings.yml 파일 보기

@@ -450,9 +450,9 @@ engines:
450 450
 #  - name : urbandictionary
451 451
 #    engine        : xpath
452 452
 #    search_url    : http://www.urbandictionary.com/define.php?term={query}
453
-#    url_xpath     : //div[@class="word"]//a/@href
454
-#    title_xpath   : //div[@class="word"]//a
455
-#    content_xpath : //div[@class="definition"]
453
+#    url_xpath     : //*[@class="word"]/@href
454
+#    title_xpath   : //*[@class="def-header"]
455
+#    content_xpath : //*[@class="meaning"]
456 456
 #    shortcut : ud
457 457
 
458 458
   - name : yahoo