diff options
author | a01200356 <a01200356@itesm.mx> | 2016-01-18 11:34:38 -0600 |
---|---|---|
committer | a01200356 <a01200356@itesm.mx> | 2016-01-18 11:34:38 -0600 |
commit | 30bfbf2e07def8911d0b293e8032699812f43599 (patch) | |
tree | da3142cd5f1c1d05b922be2d1e6aaaf029fa8d8d /searx/engines/wolframalpha_noapi.py | |
parent | 51278ee0be0af0d037d467dc0e22cb844a79e5f8 (diff) | |
download | searxng-30bfbf2e07def8911d0b293e8032699812f43599.tar.gz searxng-30bfbf2e07def8911d0b293e8032699812f43599.zip |
[fix] pep8
Diffstat (limited to 'searx/engines/wolframalpha_noapi.py')
-rw-r--r-- | searx/engines/wolframalpha_noapi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/wolframalpha_noapi.py b/searx/engines/wolframalpha_noapi.py index 442e894b5..291fee04d 100644 --- a/searx/engines/wolframalpha_noapi.py +++ b/searx/engines/wolframalpha_noapi.py @@ -16,7 +16,7 @@ import HTMLParser # search-url url = 'http://www.wolframalpha.com/' -search_url = url+'input/?{query}' +search_url = url + 'input/?{query}' # xpath variables scripts_xpath = '//script' @@ -61,7 +61,7 @@ def response(resp): if line: # extract answer from json - answer = line[line.find('{'):line.rfind('}')+1] + answer = line[line.find('{'):line.rfind('}') + 1] try: answer = loads(answer) except Exception: |