浏览代码

add OpenAIRE engine as a json engine

This is the continuation of #1048 created by @jibe-b.

Closes #1048
Noémi Ványi 7 年前
父节点
当前提交
7de8b43eb2
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12
    0
      searx/settings.yml

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

@@ -415,6 +415,18 @@ engines:
415 415
     shortcut : nt
416 416
     disabled : True
417 417
 
418
+  - name : openaire
419
+    engine : json_engine
420
+    paging : True
421
+    search_url : http://api.openaire.eu/search/datasets?format=json&page={pageno}&size=10&title={query}
422
+    results_query : response/results/result
423
+    url_query : metadata/oaf:entity/oaf:result/children/instance/webresource/url/$
424
+    title_query : metadata/oaf:entity/oaf:result/title/$
425
+    content_query : metadata/oaf:entity/oaf:result/description/$
426
+    categories : science
427
+    shortcut : oa
428
+    timeout: 5.0
429
+
418 430
   - name : openstreetmap
419 431
     engine : openstreetmap
420 432
     shortcut : osm