Sync upstream

This commit is contained in:
github-actions[bot] 2024-09-13 00:31:51 +00:00
commit c057145e50
2 changed files with 23 additions and 1 deletions

View file

@ -146,7 +146,11 @@ def response(resp):
} }
) )
else: else:
for url, title, content in zip(query(json, url_query), query(json, title_query), query(json, content_query)): for result in json:
url = query(result, url_query)[0]
title = query(result, title_query)[0]
content = query(result, content_query)[0]
results.append( results.append(
{ {
'url': url_prefix + to_string(url), 'url': url_prefix + to_string(url),

View file

@ -1548,6 +1548,24 @@ engines:
page_size: 25 page_size: 25
disabled: true disabled: true
- name: right dao
engine: xpath
paging: true
page_size: 12
search_url: https://rightdao.com/search?q={query}&start={pageno}
results_xpath: //div[contains(@class, "description")]
url_xpath: ../div[contains(@class, "title")]/a/@href
title_xpath: ../div[contains(@class, "title")]
content_xpath: .
categories: general
shortcut: rd
disabled: true
about:
website: https://rightdao.com/
use_official_api: false
require_api_key: false
results: HTML
- name: rottentomatoes - name: rottentomatoes
engine: rottentomatoes engine: rottentomatoes
shortcut: rt shortcut: rt