|
@@ -17,20 +17,19 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
|
17
|
17
|
(C) 2013- by Adam Tauber, <asciimoo@gmail.com>
|
18
|
18
|
'''
|
19
|
19
|
|
|
20
|
+import json
|
|
21
|
+import cStringIO
|
|
22
|
+import os
|
|
23
|
+
|
20
|
24
|
from searx import settings
|
21
|
25
|
from flask import Flask, request, render_template
|
22
|
26
|
from flask import url_for, Response, make_response, redirect
|
23
|
27
|
from searx.engines import search, categories, engines, get_engines_stats
|
24
|
|
-import json
|
25
|
|
-import cStringIO
|
26
|
28
|
from searx.utils import UnicodeWriter
|
27
|
29
|
from flask import send_from_directory
|
28
|
30
|
from searx.utils import highlight_content, html_to_text
|
29
|
31
|
|
30
|
32
|
|
31
|
|
-import os
|
32
|
|
-
|
33
|
|
-
|
34
|
33
|
app = Flask(
|
35
|
34
|
__name__,
|
36
|
35
|
static_folder=os.path.join(os.path.dirname(__file__), 'static'),
|