瀏覽代碼

Merge pull request #1238 from MarcAbonce/duckduckgo

[fix] Change duckduckgo url to avoid error response
Adam Tauber 6 年之前
父節點
當前提交
1a2e9268a0
沒有帳戶連結到提交者的電子郵件
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      searx/engines/duckduckgo.py

+ 1
- 1
searx/engines/duckduckgo.py 查看文件

@@ -27,7 +27,7 @@ supported_languages_url = 'https://duckduckgo.com/d2030.js'
27 27
 time_range_support = True
28 28
 
29 29
 # search-url
30
-url = 'https://duckduckgo.com/html?{query}&s={offset}&api=/d.js&o=json&dc={dc_param}'
30
+url = 'https://duckduckgo.com/html?{query}&s={offset}&dc={dc_param}'
31 31
 time_range_url = '&df={range}'
32 32
 
33 33
 time_range_dict = {'day': 'd',