mirror of https://github.com/searx/searx
Update xPath to be relative
This commit is contained in:
parent
7b714c0d0e
commit
528c0d4671
|
@ -44,7 +44,7 @@ def response(resp):
|
|||
|
||||
dom = html.fromstring(resp.text)
|
||||
|
||||
for result in eval_xpath_list(dom, "/html/body/div[3]/div[1]/ol/li"):
|
||||
for result in eval_xpath_list(dom, "//ol[@class='search-results']/li"):
|
||||
|
||||
extracted_desc = extract_text(eval_xpath_getindex(result, './/p', 0))
|
||||
|
||||
|
|
Loading…
Reference in New Issue