mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
[fix] rewrite hoogle to use html/xpath instead of json
the json response has been changed and it contains html chunks which is not compatible with our json engine, so we have to switch to html/xpath parsing
This commit is contained in:
parent
45f0e1a859
commit
6255b33c9d
@ -618,13 +618,13 @@ engines:
|
|||||||
results: HTML
|
results: HTML
|
||||||
|
|
||||||
- name : hoogle
|
- name : hoogle
|
||||||
engine : json_engine
|
engine : xpath
|
||||||
paging : True
|
paging : True
|
||||||
search_url : https://www.haskell.org/hoogle/?mode=json&hoogle={query}&start={pageno}
|
search_url : https://hoogle.haskell.org/?hoogle={query}&start={pageno}
|
||||||
results_query : results
|
results_xpath : '//div[@class="result"]'
|
||||||
url_query : location
|
title_xpath : './/div[@class="ans"]//a'
|
||||||
title_query : self
|
url_xpath : './/div[@class="ans"]//a/@href'
|
||||||
content_query : docs
|
content_xpath : './/div[@class="from"]'
|
||||||
page_size : 20
|
page_size : 20
|
||||||
categories : it
|
categories : it
|
||||||
shortcut : ho
|
shortcut : ho
|
||||||
|
Loading…
Reference in New Issue
Block a user