forked from zaclys/searxng
[fix] indexing
This commit is contained in:
parent
01c2eeb8ff
commit
a8a0de644d
|
@ -23,7 +23,10 @@ def response(resp):
|
||||||
doc = fromstring(resp.text)
|
doc = fromstring(resp.text)
|
||||||
|
|
||||||
for r in doc.xpath(result_xpath):
|
for r in doc.xpath(result_xpath):
|
||||||
|
try:
|
||||||
res_url = r.xpath(url_xpath)[-1]
|
res_url = r.xpath(url_xpath)[-1]
|
||||||
|
except:
|
||||||
|
continue
|
||||||
if not res_url:
|
if not res_url:
|
||||||
continue
|
continue
|
||||||
title = html_to_text(''.join(r.xpath(title_xpath)))
|
title = html_to_text(''.join(r.xpath(title_xpath)))
|
||||||
|
|
Loading…
Reference in New Issue