SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] engine - cppreference has no longer a search function (#5273)
Markus Heiserc6f1ea12b1d7
diff --git a/searx/engines/cppreference.py b/searx/engines/cppreference.pydeleted file mode 100644index 5d021fe66..000000000--- a/searx/engines/cppreference.py+++ /dev/null@@ -1,37 +0,0 @@-# SPDX-License-Identifier: AGPL-3.0-or-later-"""Cppreference"""-from lxml import html-from searx.utils import eval_xpath---about = {- "website": "https://en.cppreference.com/",- "wikidata_id": None,- "official_api_documentation": None,- "use_official_api": False,- "require_api_key": False,- "results": 'HTML',-}---categories = ['it']-url = 'https://en.cppreference.com/'-search_url = url + 'mwiki/index.php?title=Special%3ASearch&search={query}'---def request(query, params):- params['url'] = search_url.format(query=query)- return query---def response(resp):- results = []- dom = html.fromstring(resp.text)- for result in eval_xpath(dom, '//div[contains(@class, "mw-search-result-heading")]'):- results.append(- {- 'url': url + eval_xpath(result, './/a/@href')[0],- 'title': eval_xpath(result, './/a/text()')[0],- }- )- return resultsdiff --git a/searx/settings.yml b/searx/settings.ymlindex 9b85692fc..a455e8cad 100644--- a/searx/settings.yml+++ b/searx/settings.yml@@ -665,12 +665,6 @@ engines:api_key: ""inactive: true- - name: cppreference- engine: cppreference- shortcut: cpp- paging: false- disabled: true-- name: crossrefengine: crossrefshortcut: cr