mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
[fix] remove .encode for python3 compatibility
This commit is contained in:
parent
5278fa666c
commit
e391b2d970
@ -41,7 +41,7 @@ def request(query, params):
|
|||||||
def response(resp):
|
def response(resp):
|
||||||
results = []
|
results = []
|
||||||
|
|
||||||
search_results = html.fromstring(resp.text.encode('utf-8')).xpath('//entry')
|
search_results = html.fromstring(resp.text).xpath('//entry')
|
||||||
|
|
||||||
for entry in search_results:
|
for entry in search_results:
|
||||||
title = entry.xpath('.//title')[0].text
|
title = entry.xpath('.//title')[0].text
|
||||||
|
Loading…
Reference in New Issue
Block a user