From 01e28757d35fa1edc6004a17e530ecdb1203fb0b Mon Sep 17 00:00:00 2001 From: iko Date: Sat, 22 Jan 2022 20:22:24 +0300 Subject: [PATCH] Fixed Hoogle engine (#3146) --- searx/settings.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/searx/settings.yml b/searx/settings.yml index 59c12af1..4ecb4342 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -690,22 +690,19 @@ engines: - name : hoogle engine : xpath - paging : True search_url : https://hoogle.haskell.org/?hoogle={query}&start={pageno} results_xpath : '//div[@class="result"]' - title_xpath : './/div[@class="ans"]//a' - url_xpath : './/div[@class="ans"]//a/@href' - content_xpath : './/div[@class="from"]' - page_size : 20 + title_xpath : './div[@class="ans"]' + url_xpath : './div[@class="ans"]//a/@href' + content_xpath : './div[contains(@class, "doc")]' categories : it shortcut : ho about: - website: https://www.haskell.org/ + website: https://hoogle.haskell.org/ wikidata_id: Q34010 - official_api_documentation: https://hackage.haskell.org/api use_official_api: false require_api_key: false - results: JSON + results: HTML - name : imdb engine : imdb