瀏覽代碼

ddg encoding of URLs appears to be broken, revealed when trying to pickled the results to disk

Emmanuel Benazera 9 年之前
父節點
當前提交
78a69e4c98
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      searx/engines/duckduckgo.py

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

@@ -72,7 +72,7 @@ def response(resp):
72 72
         # append result
73 73
         results.append({'title': title,
74 74
                         'content': content,
75
-                        'url': res_url})
75
+                        'url': res_url.encode('utf8')})
76 76
 
77 77
     # return results
78 78
     return results