From d703119d3a313a406482b121ee94c6afee3bc307 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Wed, 9 Dec 2020 21:23:20 +0100 Subject: [enh] add raise_for_httperror check HTTP response: * detect some comme CAPTCHA challenge (no solving). In this case the engine is suspended for long a time. * otherwise raise HTTPError as before the check is done in poolrequests.py (was before in search.py). update qwant, wikipedia, wikidata to use raise_for_httperror instead of raise_for_status --- searx/settings.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'searx/settings.yml') diff --git a/searx/settings.yml b/searx/settings.yml index 132bf620b..3ba9b745f 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -647,11 +647,6 @@ engines: shortcut : qwn categories : news - - name : qwant social - engine : qwant - shortcut : qws - categories : social media - # - name: library # engine: recoll # shortcut: lib @@ -817,12 +812,13 @@ engines: # Or you can use the html non-stable engine, activated by default engine : youtube_noapi - - name : yggtorrent - engine : yggtorrent - shortcut : ygg - url: https://www2.yggtorrent.si/ - disabled : True - timeout : 4.0 + # tmp suspended: Cloudflare CAPTCHA + #- name : yggtorrent + # engine : yggtorrent + # shortcut : ygg + # url: https://www2.yggtorrent.si/ + # disabled : True + # timeout : 4.0 - name : dailymotion engine : dailymotion -- cgit v1.2.3