diff options
author | dalf <alex@al-f.net> | 2014-12-07 16:37:56 +0100 |
---|---|---|
committer | dalf <alex@al-f.net> | 2014-12-07 16:37:56 +0100 |
commit | 7c13d630e4531630ce3c392a7d60752715742291 (patch) | |
tree | 332019feae5a215d2d54528308792560794d7aa5 /searx/engines/duckduckgo.py | |
parent | ffcec383b7355c6ca8b60da8579a43019d7d7e6b (diff) | |
download | searxng-7c13d630e4531630ce3c392a7d60752715742291.tar.gz searxng-7c13d630e4531630ce3c392a7d60752715742291.zip |
[fix] pep8 : engines (errors E121, E127, E128 and E501 still exist)
Diffstat (limited to 'searx/engines/duckduckgo.py')
-rw-r--r-- | searx/engines/duckduckgo.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py index 296dd9b2d..583e33f73 100644 --- a/searx/engines/duckduckgo.py +++ b/searx/engines/duckduckgo.py @@ -1,15 +1,17 @@ ## DuckDuckGo (Web) -# +# # @website https://duckduckgo.com/ -# @provide-api yes (https://duckduckgo.com/api), but not all results from search-site -# +# @provide-api yes (https://duckduckgo.com/api), +# but not all results from search-site +# # @using-api no # @results HTML (using search portal) # @stable no (HTML can change) # @parse url, title, content # # @todo rewrite to api -# @todo language support (the current used site does not support language-change) +# @todo language support +# (the current used site does not support language-change) from urllib import urlencode from lxml.html import fromstring @@ -37,7 +39,7 @@ def request(query, params): if params['language'] == 'all': locale = 'en-us' else: - locale = params['language'].replace('_','-').lower() + locale = params['language'].replace('_', '-').lower() params['url'] = url.format( query=urlencode({'q': query, 'kl': locale}), |