From 50f3665c92edff50585f0cee4887280b0402b407 Mon Sep 17 00:00:00 2001 From: ta Date: Tue, 7 Jun 2022 16:31:25 +0700 Subject: [PATCH] add pub.dev engine --- searx/settings.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/searx/settings.yml b/searx/settings.yml index cc955311..7c873c2c 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -986,6 +986,26 @@ engines: # query_str : 'SELECT * from my_table WHERE my_column = %(query)s' # shortcut : psql + - name : pubdev + engine : xpath + search_url : https://pub.dev/packages?q={query}&page={pageno} + paging : True + results_xpath: /html/body/main/div/div[@class="search-results"]/div[@class="packages"]/div + url_xpath : ./div/h3/a/@href + title_xpath : ./div/h3/a + content_xpath : ./p[@class="packages-description"] + categories : it + timeout : 3.0 + disabled : True + shortcut : dart + first_page_num : 1 + about: + website: https://pub.dev/ + official_api_documentation: https://pub.dev/help/api + use_official_api: False + require_api_key: False + results: HTML + - name : pubmed engine : pubmed shortcut : pub