瀏覽代碼

add lobste.rs xpath engine

Noémi Ványi 8 年之前
父節點
當前提交
c7906555a0
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10
    0
      searx/settings.yml

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

313
     timeout : 4.0
313
     timeout : 4.0
314
     disabled : True
314
     disabled : True
315
 
315
 
316
+  - name : lobste.rs
317
+    engine : xpath
318
+    search_url : https://lobste.rs/search?utf8=%E2%9C%93&q={query}&what=stories&order=relevance
319
+    results_xpath : //li[contains(@class, "story")]
320
+    url_xpath : .//span[@class="link"]/a/@href
321
+    title_xpath : .//span[@class="link"]/a
322
+    content_xpath : .//a[@class="domain"]
323
+    categories : it
324
+    shortcut : lo
325
+
316
   - name : microsoft academic
326
   - name : microsoft academic
317
     engine : json_engine
327
     engine : json_engine
318
     paging : True
328
     paging : True