Browse Source

[add] naver engine

It adds new search engine for users from the South Korea (and therefore it is disabled by default). Closes #1553
Venca24 4 years ago
parent
commit
d3bc171a15
1 changed files with 15 additions and 0 deletions
  1. 15 0
      searx/settings.yml

+ 15 - 0
searx/settings.yml

@@ -835,6 +835,21 @@ engines:
     engine : seedpeer
     engine : seedpeer
     categories: files, music, videos
     categories: files, music, videos
 
 
+
+  - name : naver
+    shortcut: nvr
+    engine: xpath
+    paging : True
+    search_url : https://search.naver.com/search.naver?where=webkr&sm=osp_hty&ie=UTF-8&query={query}&start={pageno}
+    results_xpath: /html/body//ul[@id="elThumbnailResultArea"]/li
+    url_xpath : ./dl/dt/a[@class="title_link"]/@href
+    title_xpath : ./dl/dt/a[@class="title_link"]
+    content_xpath : ./dl/dd[@class="sh_web_passage"]
+    suggestion_xpath : /html/body//div[@class="sp_keyword section"]//a
+    first_page_num : 1
+    page_size : 10
+    disabled : True
+
   - name : rubygems
   - name : rubygems
     shortcut: rbg
     shortcut: rbg
     engine: xpath
     engine: xpath