commit: 7ddf7d43ba32aa4450cdedb09093989f441648d1
parent: 74b6be3991dc62577aca295de839e51e6d0807d6
Author: asciimoo <asciimoo@gmail.com>
Date: Thu, 24 Oct 2013 21:00:44 +0200
[fix] character encoding fix
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py
@@ -18,7 +18,7 @@ def request(query, params):
def response(resp):
global base_url
results = []
- dom = html.fromstring(resp.text)
+ dom = html.fromstring(resp.content)
for result in dom.xpath('//div[@class="result"]'):
link = result.xpath('.//h3/a')[0]
url = urljoin(base_url, link.attrib.get('href'))