1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

[fix] character encoding fix

This commit is contained in:
asciimoo 2013-10-24 21:00:44 +02:00
parent 74b6be3991
commit 7ddf7d43ba

View File

@ -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'))