Adam Tauber il y a 11 ans
Parent
révision
52a817f5c1
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2
    1
      searx/engines/duckduckgo.py

+ 2
- 1
searx/engines/duckduckgo.py Voir le fichier

@@ -5,6 +5,7 @@ from searx.utils import html_to_text
5 5
 url = 'https://duckduckgo.com/html?{query}&s={offset}'
6 6
 locale = 'us-en'
7 7
 
8
+
8 9
 def request(query, params):
9 10
     offset = (params['pageno'] - 1) * 30
10 11
     q = urlencode({'q': query,
@@ -14,7 +15,7 @@ def request(query, params):
14 15
 
15 16
 
16 17
 def 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
18 19
     url_xpath = './/a[@class="large"]/@href'
19 20
     title_xpath = './/a[@class="large"]//text()'
20 21
     content_xpath = './/div[@class="snippet"]//text()'