Commit a9ad88e0 authored by Arnau Vàzquez's avatar Arnau Vàzquez
Browse files

Merge branch '3896-no-results' into 'master'

Retry when request fail; Updated default list of search engines

Closes e/backlog#3896

See merge request e/cloud/my-spot!70
parents 1bede368 6848895c
......@@ -229,7 +229,7 @@ def initialize(settings_engines=None, settings_outgoing=None):
# from https://github.com/psf/requests/blob/8c211a96cdbe9fe320d63d9e1ae15c5c07e179f8/requests/models.py#L55
'max_redirects': settings_outgoing.get('max_redirects', 30),
#
'retries': settings_outgoing.get('retries', 0),
'retries': settings_outgoing.get('retries', 3),
'retry_on_http_error': None,
}
......
......@@ -241,7 +241,6 @@ engines:
- name : bing
engine : bing
shortcut : bi
disabled : True
- name : bing images
engine : bing_images
......@@ -555,7 +554,6 @@ engines:
- name : google
engine : google
shortcut : go
disabled : True
use_mobile_ui: false
# additional_tests:
# android: *test_android
......@@ -992,7 +990,6 @@ engines:
engine : qwant
shortcut : qw
categories : general
disabled : True
additional_tests:
rosebud: *test_rosebud
......@@ -1498,13 +1495,13 @@ engines:
shortcut: nvr
engine: xpath
paging : True
disabled : True
search_url : https://search.naver.com/search.naver?where=webkr&sm=osp_hty&ie=UTF-8&query={query}&start={pageno}
url_xpath : //a[@class="link_tit"]/@href
title_xpath : //a[@class="link_tit"]
content_xpath : //a[@class="total_dsc"]/div
first_page_num : 1
page_size : 10
disabled : True
about:
website: https://www.naver.com/
wikidata_id: Q485639
......@@ -1618,6 +1615,7 @@ engines:
shortcut: brave
engine: xpath
paging: false
disabled: True
search_url: https://search.brave.com/search?q={query}
url_xpath: //div[@class="snippet fdb"]/a/@href
title_xpath: //span[@class="snippet-title"]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment