mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[mod] tootfinder: switch to xpath engine
This commit is contained in:
parent
159629c588
commit
b377e46c4f
1 changed files with 9 additions and 8 deletions
|
@ -1935,21 +1935,22 @@ engines:
|
||||||
disabled: true
|
disabled: true
|
||||||
|
|
||||||
- name: tootfinder
|
- name: tootfinder
|
||||||
engine: json_engine
|
engine: xpath
|
||||||
categories: ['social media']
|
categories: ['social media']
|
||||||
paging: false
|
paging: false
|
||||||
search_url: https://www.tootfinder.ch/rest/api/search/{query}
|
search_url: https://www.tootfinder.ch/search/{query}
|
||||||
url_query: uri
|
results_xpath: //div[contains(@class,"container")]/div[contains(@class,"post")]
|
||||||
title_query: card/title
|
url_xpath: ./div[contains(@class,"postheader")]/span/a/@href
|
||||||
content_query: content
|
title_xpath: (.//div[contains(@class,"media")]/a/img/@alt | .//div[contains(@class,"postheader")]/span/text())[last()]
|
||||||
thumbnail_query: card/image
|
content_xpath: .//p/text()
|
||||||
|
thumbnail_xpath: .//img[contains(@class,"media")]/@src
|
||||||
shortcut: toot
|
shortcut: toot
|
||||||
about:
|
about:
|
||||||
website: https://tootfinder.ch/
|
website: https://tootfinder.ch/
|
||||||
official_api_documentation: https://wiki.tootfinder.ch/index.php?name=the-tootfinder-rest-api
|
official_api_documentation: https://wiki.tootfinder.ch/index.php?name=the-tootfinder-rest-api
|
||||||
use_official_api: true
|
use_official_api: false
|
||||||
require_api_key: false
|
require_api_key: false
|
||||||
results: 'JSON'
|
results: 'HTML'
|
||||||
|
|
||||||
- name: wallhaven
|
- name: wallhaven
|
||||||
engine: wallhaven
|
engine: wallhaven
|
||||||
|
|
Loading…
Add table
Reference in a new issue