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
[ehn] added ixquick engine, using startpage engine
pw3t1dd35e9916da
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.pyindex 87c091e2d..f1ff76292 100644--- a/searx/engines/startpage.py+++ b/searx/engines/startpage.py@@ -3,8 +3,8 @@ from lxml import htmlfrom urlparse import urlparsefrom cgi import escape-base_url = 'https://startpage.com/'-search_url = base_url+'do/search'+base_url = None+search_url = Nonedef request(query, params):global search_url@@ -26,6 +26,11 @@ def response(resp):url = link.attrib.get('href')parsed_url = urlparse(url)title = link.text_content()- content = result.xpath('./p[@class="desc"]')[0].text_content()++ content =''+ if len(result.xpath('./p[@class="desc"]')):+ content = result.xpath('./p[@class="desc"]')[0].text_content()+results.append({'url': url, 'title': title, 'content': content})+return resultsdiff --git a/settings.yml b/settings.ymlindex b7c82cc72..bebee020c 100644--- a/settings.yml+++ b/settings.yml@@ -68,6 +68,13 @@ engines:- name : startpageengine : startpage+ base_url : 'https://startpage.com/'+ search_url : 'https://startpage.com/do/search'++ - name : ixquick+ engine : startpage+ base_url : 'https://www.ixquick.com/'+ search_url : 'https://www.ixquick.com/do/search'- name : twitterengine : twitter