Browse Source

add OpenAIRE engine as a json engine

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

Closes #1048
Noémi Ványi 7 years ago
parent
commit
7de8b43eb2
1 changed files with 12 additions and 0 deletions
  1. 12 0
      searx/settings.yml

+ 12 - 0
searx/settings.yml

@@ -415,6 +415,18 @@ engines:
     shortcut : nt
     disabled : True
 
+  - name : openaire
+    engine : json_engine
+    paging : True
+    search_url : http://api.openaire.eu/search/datasets?format=json&page={pageno}&size=10&title={query}
+    results_query : response/results/result
+    url_query : metadata/oaf:entity/oaf:result/children/instance/webresource/url/$
+    title_query : metadata/oaf:entity/oaf:result/title/$
+    content_query : metadata/oaf:entity/oaf:result/description/$
+    categories : science
+    shortcut : oa
+    timeout: 5.0
+
   - name : openstreetmap
     engine : openstreetmap
     shortcut : osm