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

[fix] make ina engine compatible with the new response json

This commit is contained in:
Adam Tauber 2021-03-25 01:20:41 +01:00
parent 6255b33c9d
commit 0ba71c3644

View File

@ -53,9 +53,7 @@ def response(resp):
# we get html in a JSON container...
response = loads(resp.text)
if "content" not in response:
return []
dom = html.fromstring(response["content"])
dom = html.fromstring(response)
# parse results
for result in dom.xpath(results_xpath):