on master help sign in
[fix] pep8
commit52a817f5c1e8727d9244abb156368d3cbcc0f264 authorAdam Tauber <asciimoo@gmail.com> dateSat 29 Mar 2014, 16:38 (13 years ago) parentfd730eb
1 file changed+2−1
searx/engines/duckduckgo.py+2−1
searx/engines/duckduckgo.py+2−1
@@ -5,6 +5,7 @@ from searx.utils import html_to_text
55url = 'https://duckduckgo.com/html?{query}&s={offset}'
66locale = 'us-en'
77
8+
89def request(query, params):
910 offset = (params['pageno'] - 1) * 30
1011 q = urlencode({'q': query,
@@ -14,7 +15,7 @@ def request(query, params):
1415
1516
1617def response(resp):
17− result_xpath = '//div[@class="results_links results_links_deep web-result"]'
18+ result_xpath = '//div[@class="results_links results_links_deep web-result"]' # noqa
1819 url_xpath = './/a[@class="large"]/@href'
1920 title_xpath = './/a[@class="large"]//text()'
2021 content_xpath = './/div[@class="snippet"]//text()'