summaryrefslogtreecommitdiff
path: root/searx/engines/filecrop.py
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-01-05 00:46:42 +0100
committerasciimoo <asciimoo@gmail.com>2014-01-05 00:46:42 +0100
commitd13c5aa37b02e4df8d5aa7481d0fece3a341f8c2 (patch)
treeba23a1948e1702c3912ccdc9dfe3c494c965841a /searx/engines/filecrop.py
parent27cae541972cabd460142aa3d009ea00c37c29d5 (diff)
downloadsearxng-d13c5aa37b02e4df8d5aa7481d0fece3a341f8c2.tar.gz
searxng-d13c5aa37b02e4df8d5aa7481d0fece3a341f8c2.zip
[mod] unused imports and whitespaces purged
Diffstat (limited to 'searx/engines/filecrop.py')
-rw-r--r--searx/engines/filecrop.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/searx/engines/filecrop.py b/searx/engines/filecrop.py
index a1a933db9..52426b84a 100644
--- a/searx/engines/filecrop.py
+++ b/searx/engines/filecrop.py
@@ -1,6 +1,4 @@
-from json import loads
from urllib import urlencode
-from searx.utils import html_to_text
from HTMLParser import HTMLParser
url = 'http://www.filecrop.com/'
@@ -10,7 +8,7 @@ class FilecropResultParser(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self.__start_processing = False
-
+
self.results = []
self.result = {}
@@ -22,7 +20,7 @@ class FilecropResultParser(HTMLParser):
if tag == 'tr':
if ('bgcolor', '#edeff5') in attrs or ('bgcolor', '#ffffff') in attrs:
self.__start_processing = True
-
+
if not self.__start_processing:
return
@@ -50,7 +48,7 @@ class FilecropResultParser(HTMLParser):
self.data_counter = 0
self.results.append(self.result)
self.result = {}
-
+
def handle_data(self, data):
if not self.__start_processing:
return
@@ -59,7 +57,7 @@ class FilecropResultParser(HTMLParser):
self.result['content'] += data + ' '
else:
self.result['content'] = data + ' '
-
+
self.data_counter += 1
def request(query, params):