diff options
author | Adam Tauber <asciimoo@gmail.com> | 2014-10-19 12:18:21 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2014-10-19 12:18:21 +0200 |
commit | b0fd71b7b3463864e6c60156610d383af2ac9709 (patch) | |
tree | 8d42300ada760f94fef877c27d2c92bafd51ddeb /searx/engines/yahoo_news.py | |
parent | 28fed5d9ad4227ca772f258d5e9bd3d48452b845 (diff) | |
download | searxng-b0fd71b7b3463864e6c60156610d383af2ac9709.tar.gz searxng-b0fd71b7b3463864e6c60156610d383af2ac9709.zip |
[fix] pep8 compatibility
Diffstat (limited to 'searx/engines/yahoo_news.py')
-rw-r--r-- | searx/engines/yahoo_news.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/searx/engines/yahoo_news.py b/searx/engines/yahoo_news.py index c07d7e185..4a7dd16ea 100644 --- a/searx/engines/yahoo_news.py +++ b/searx/engines/yahoo_news.py @@ -1,8 +1,9 @@ -## Yahoo (News) -# +# Yahoo (News) +# # @website https://news.yahoo.com -# @provide-api yes (https://developer.yahoo.com/boss/search/), $0.80/1000 queries -# +# @provide-api yes (https://developer.yahoo.com/boss/search/) +# $0.80/1000 queries +# # @using-api no (because pricing) # @results HTML (using search portal) # @stable no (HTML can change) @@ -22,7 +23,7 @@ paging = True language_support = True # search-url -search_url = 'https://news.search.yahoo.com/search?{query}&b={offset}&fl=1&vl=lang_{lang}' +search_url = 'https://news.search.yahoo.com/search?{query}&b={offset}&fl=1&vl=lang_{lang}' # noqa # specific xpath variables results_xpath = '//div[@class="res"]' @@ -41,7 +42,7 @@ def request(query, params): language = 'en' else: language = params['language'].split('_')[0] - + params['url'] = search_url.format(offset=offset, query=urlencode({'p': query}), lang=language) |