Browse Source

[enh] Add Packagist search engine (JSON)

Packagist's API: https://packagist.org/apidoc
Kevin Köllmann 3 years ago
parent
commit
2b3687780c
1 changed files with 20 additions and 0 deletions
  1. 20 0
      searx/settings.yml

+ 20 - 0
searx/settings.yml

@@ -938,6 +938,26 @@ engines:
       require_api_key: false
       results: HTML
 
+  - name: packagist
+    engine: json_engine
+    paging: true
+    search_url: https://packagist.org/search.json?q={query}&page={pageno}
+    results_query: results
+    url_query: url
+    title_query: name
+    content_query: description
+    categories: it
+    disabled: true
+    timeout: 5.0
+    shortcut: pack
+    about:
+      website: https://packagist.org
+      wikidata_id: Q108311377
+      official_api_documentation: https://packagist.org/apidoc
+      use_official_api: true
+      require_api_key: false
+      results: JSON
+
   - name: pdbe
     engine: pdbe
     shortcut: pdb