searx/searx
Noémi Ványi f00d9e0ec4
Pick minor fixes from searxng (#3251)
* [fix] Rename ccengine engine to openverse

The CC engine was merged with WordPress and renamed to Openverse

Source: https://wordpress.org/news/2021/05/welcome-to-openverse/

* [fix] ccengine engine - avoid unwanted redirects

api.openverse.engineering is a little picky and wants to have a trailing slash
in the path:

    /v1/images? -->/ v1/images/?

otherwise it redirects, here is the debug log:

    DEBUG   searx.network.openverse       : HTTP Request: GET https://api.openverse.engineering/v1/images?&page=1&page_size=20&format=json&q=foo "HTTP/2 301 Moved Permanently" (text/html; charset=utf-8)
    DEBUG   searx.network.openverse       : HTTP Request: GET https://api.openverse.engineering/v1/images/?&page=1&page_size=20&format=json&q=foo "HTTP/2 200 OK" (application/json)
    WARNING searx.engines.openverse       : ErrorContext('searx/search/processors/online.py', 105, 'count_error(', None, '1 redirects, maximum: 0', ('200', 'OK', 'api.openverse.engineering')) True

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>

* [fix] FutureWarning from lxml

Just in case if content is None, the original code will skip extract_text(), and
just append the None value to 'content'. So just add allow_none=True, and this
will return None without raising a ValueError in extract_text().

* [enh] Add pagination to Brave

Also added ```&spellcheck=1``` because now it is disabled by default, not returning any ```suggestion_xpath```.

Co-authored-by: Léon Tiekötter <leon@tiekoetter.com>
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
Co-authored-by: capric98 <42015599+capric98@users.noreply.github.com>
Co-authored-by: Allen <64094914+allendema@users.noreply.github.com>
2022-06-06 00:01:27 +02:00
..
answerers [fix] answers: don't crash when the query is an empty string 2021-03-01 10:52:39 +01:00
data Update searx.data - update_wikidata_units.py (#3222) 2022-05-24 21:08:52 +02:00
engines Pick minor fixes from searxng (#3251) 2022-06-06 00:01:27 +02:00
metrology [enh] replace requests by httpx 2021-05-03 21:39:37 +02:00
network Fix Tor proxy when using httpx 0.21.x (#3165) 2022-03-01 20:21:25 +01:00
plugins [enh] Add Pagination to Wiby / Fix Kaufland (#3000) 2021-10-10 20:52:06 +02:00
search Fix issues in network after updating httpx to 0.21.x (#3169) 2022-02-28 22:05:20 +01:00
shared [fix] checker: don't run the checker when uwsgi is not properly configured 2021-01-13 14:07:39 +01:00
static [fix] CSS: improve text overflow of custom select (#2985) 2021-10-10 15:38:18 +02:00
templates products results: add possibility to show if a product is in stock or not.. (#3120) 2022-01-11 22:39:08 +01:00
translations [enh] update translations from transifex 2021-03-27 19:10:54 +01:00
__init__.py Provide better error message if settings.yml cannot be loaded 2022-03-17 20:34:50 +01:00
autocomplete.py [fix] startpage autocompletion 2022-01-22 12:18:57 +01:00
exceptions.py [enh] add raise_for_httperror 2020-12-11 14:37:08 +01:00
external_bang.py [mod] add utils/fetch_external_bangs.py 2021-02-24 18:48:36 +01:00
external_urls.py [enh] openstreetmap / map template: improve results 2021-10-02 14:57:30 +02:00
languages.py Update searx.data - update_languages.py 2021-03-05 10:56:46 +00:00
preferences.py Bump pylint from 2.9.6 to 2.10.2 2021-08-22 20:53:12 +02:00
query.py [enh] autocomplete refactoring, autocomplete on external bangs 2021-03-01 19:12:32 +01:00
results.py Add scheme to img_src and thumbnail_url if missing from URL 2022-01-22 11:59:21 +01:00
settings.yml Pick minor fixes from searxng (#3251) 2022-06-06 00:01:27 +02:00
settings_loader.py Provide better error message if settings.yml cannot be loaded 2022-03-17 20:34:50 +01:00
settings_robot.yml Use oadoi.org as default_doi_resolver 2021-04-29 22:43:52 +02:00
testing.py [httpx] replace searx.poolrequests by searx.network 2021-05-03 21:39:54 +02:00
utils.py Pick image_proxy changes from searxng (#2965) 2022-01-22 13:49:00 +01:00
version.py [enh] release v1.0.0 2021-03-27 20:30:08 +01:00
webadapter.py [fix] typo in searx.webadapter.parse_lang 2021-09-19 17:37:35 +02:00
webapp.py Pick image_proxy changes from searxng (#2965) 2022-01-22 13:49:00 +01:00
webutils.py Updated webutils.highlight_content to ignore double-quotes when highlighting query parts 2021-02-08 23:58:54 -05:00