[mod] tootfinder: switch to xpath engine

This commit is contained in:
Bnyro 2023-09-30 12:19:42 +02:00
parent 159629c588
commit b377e46c4f

View file

@ -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