summaryrefslogtreecommitdiff
path: root/searx/engines/wolframalpha_noapi.py
diff options
context:
space:
mode:
authora01200356 <a01200356@itesm.mx>2015-12-29 21:37:48 -0600
committera01200356 <a01200356@itesm.mx>2015-12-29 21:37:48 -0600
commit5ed8f4da80ecd119173d7db871256be8484a9ecb (patch)
tree9a20c9e5669906bac39e8113ea8f1e8739b521e4 /searx/engines/wolframalpha_noapi.py
parentd827fc49a11b6f84bba3d006b54a70a6a05757fd (diff)
downloadsearxng-5ed8f4da80ecd119173d7db871256be8484a9ecb.tar.gz
searxng-5ed8f4da80ecd119173d7db871256be8484a9ecb.zip
Make wolframalpha_noapi.py flake8 compliant
Diffstat (limited to 'searx/engines/wolframalpha_noapi.py')
-rw-r--r--searx/engines/wolframalpha_noapi.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/engines/wolframalpha_noapi.py b/searx/engines/wolframalpha_noapi.py
index 29600ca1f..23e912a1e 100644
--- a/searx/engines/wolframalpha_noapi.py
+++ b/searx/engines/wolframalpha_noapi.py
@@ -3,7 +3,7 @@
# @website http://www.wolframalpha.com/
#
# @using-api no
-# @results HTML, JS
+# @results HTML
# @stable no
# @parse answer
@@ -26,7 +26,7 @@ def request(query, params):
# get response from search-request
def response(resp):
results = []
-
+
# the answer is inside a js function
# answer can be located in different 'pods', although by default it should be in pod_0200
possible_locations = ['pod_0200\.push(.*)\n',
@@ -44,10 +44,10 @@ def response(resp):
return results
# extract answer from json
- answer = line[line.find('{') : line.rfind('}')+1]
+ answer = line[line.find('{'):line.rfind('}')+1]
answer = json.loads(answer.encode('unicode-escape'))
answer = answer['stringified'].decode('unicode-escape')
results.append({'answer': answer})
-
+
return results