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] replace the png icons by ico's, minor chnage in the html
pw3t380b440a55ba
diff --git a/searx/engines/mediawiki.py b/searx/engines/mediawiki.pyindex 19b4406b5..00ad0f106 100644--- a/searx/engines/mediawiki.py+++ b/searx/engines/mediawiki.py@@ -18,9 +18,3 @@ def response(resp):return [{'url': url + 'wiki/' + quote(result['title'].replace(' ', '_').encode('utf-8')),'title': result['title']} for result in res[:int(number_of_results)]]- if not len(res):- return results- for result in res[:int(number_of_results)]:- results.append({'url': url + 'wiki/' + quote(result['title'].replace(' ', '_').encode('utf-8')), 'title': result['title'], 'favicon':'wikipedia'})- return results-diff --git a/searx/static/css/style.css b/searx/static/css/style.cssindex 868f2f813..83d281806 100644--- a/searx/static/css/style.css+++ b/searx/static/css/style.css@@ -151,13 +151,6 @@ tr:hover td { background: #DDDDDD; }#result_count { font-size: 0.8em; margin: 2px 0 2px 0; padding: 0 }-#fr { padding: 2px 6px;-display: inline-block;-background: #ECF0F1;-border-radius: 4px;-border: 1px solid #3498DB;;-width:55em;}-#suggestions { position: absolute; left: 54em; width: 12em; margin: 0 2px 5px 5px; padding: 0 2px 2px 2px; }#suggestions span { display: block; font-size: 0.8em; margin: 0 2px 10px 2px; padding: 0; }#suggestions form { display: block; }diff --git a/searx/templates/result_templates/featured_results.html b/searx/templates/result_templates/featured_results.htmldeleted file mode 100644index 4aeddfe24..000000000--- a/searx/templates/result_templates/featured_results.html+++ /dev/null@@ -1,10 +0,0 @@-<div id="fr">- {% for result in featured_results %}-- {% if result['template'] %}- {% include 'result_templates/'+result['template'] %}- {% else %}- {% include 'result_templates/default.html' %}- {% endif %}- {% endfor %}-</div>diff --git a/searx/templates/results.html b/searx/templates/results.htmlindex b35416ffa..be40900c3 100644--- a/searx/templates/results.html+++ b/searx/templates/results.html@@ -14,9 +14,6 @@<div id ="result_count">Number of results: {{ number_of_results }}</div>- {% if featured_results %}- {% include 'result_templates/featured_results.html' %}- {% endif %}{% for result in results %}{% if result['template'] %}diff --git a/searx/webapp.py b/searx/webapp.pyindex bc534d36b..07db95452 100644--- a/searx/webapp.py+++ b/searx/webapp.py@@ -144,9 +144,6 @@ def index():for engine in result['engines']:if engine in ['wikipedia', 'youtube', 'vimeo', 'soundcloud', 'twitter', 'stackoverflow', 'github']:result['favicon'] = engine- if engine in ['wikipedia', 'ddg definitions']:- featured_results.append(result)- results.remove(result)if request_data.get('format') == 'json':return Response(json.dumps({'query': query, 'results': results}), mimetype='application/json')