Explorar el Código

[fix] character encoding fix

asciimoo hace 11 años
padre
commit
7ddf7d43ba
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      searx/engines/startpage.py

+ 1
- 1
searx/engines/startpage.py Ver fichero

@@ -18,7 +18,7 @@ def request(query, params):
18 18
 def response(resp):
19 19
     global base_url
20 20
     results = []
21
-    dom = html.fromstring(resp.text)
21
+    dom = html.fromstring(resp.content)
22 22
     for result in dom.xpath('//div[@class="result"]'):
23 23
         link = result.xpath('.//h3/a')[0]
24 24
         url = urljoin(base_url, link.attrib.get('href'))