mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 12:10:00 +00:00
[fix] make ina engine compatible with the new response json
This commit is contained in:
@@ -53,9 +53,7 @@ def response(resp):
|
|||||||
|
|
||||||
# we get html in a JSON container...
|
# we get html in a JSON container...
|
||||||
response = loads(resp.text)
|
response = loads(resp.text)
|
||||||
if "content" not in response:
|
dom = html.fromstring(response)
|
||||||
return []
|
|
||||||
dom = html.fromstring(response["content"])
|
|
||||||
|
|
||||||
# parse results
|
# parse results
|
||||||
for result in dom.xpath(results_xpath):
|
for result in dom.xpath(results_xpath):
|
||||||
|
|||||||
Reference in New Issue
Block a user