From 8db527c1d233888b197bd2e8b2fbda8e88d0c60d Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Mon, 22 May 2017 15:36:52 +0200 Subject: [fix] use raw response with etree.parsefromstring - Unicode strings with encoding declaration are not supported --- searx/engines/bing_news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx') diff --git a/searx/engines/bing_news.py b/searx/engines/bing_news.py index 0e2975814..b999b2a39 100644 --- a/searx/engines/bing_news.py +++ b/searx/engines/bing_news.py @@ -85,7 +85,7 @@ def request(query, params): def response(resp): results = [] - rss = etree.fromstring(resp.text) + rss = etree.fromstring(resp.content) ns = rss.nsmap -- cgit v1.2.3