From 355a88d0311f1ae715ba4b70e09184325c3d870d Mon Sep 17 00:00:00 2001 From: PlayDay <18056374+playday3008@users.noreply.github.com> Date: Thu, 17 Aug 2023 10:44:12 +0200 Subject: [PATCH] [feat] engine: XPath configuration for pkg.go.dev --- searx/settings.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/searx/settings.yml b/searx/settings.yml index 61fcc108c..69b0e9342 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -1959,6 +1959,23 @@ engines: engine: bt4g shortcut: bt4g + - name: pkg.go.dev + engine: xpath + shortcut: pgo + search_url: https://pkg.go.dev/search?limit=100&m=package&q={query} + results_xpath: /html/body/main/div[contains(@class,"SearchResults")]/div[not(@class)]/div[@class="SearchSnippet"] + url_xpath: ./div[@class="SearchSnippet-headerContainer"]/h2/a/@href + title_xpath: ./div[@class="SearchSnippet-headerContainer"]/h2/a + content_xpath: ./p[@class="SearchSnippet-synopsis"] + categories: [packages, it] + timeout: 3.0 + disabled: true + about: + website: https://pkg.go.dev/ + use_official_api: false + require_api_key: false + results: HTML + # Doku engine lets you access to any Doku wiki instance: # A public one or a privete/corporate one. # - name: ubuntuwiki