mirror of
https://github.com/searxng/searxng.git
synced 2024-12-29 20:50:28 +00:00
[fix] link attrib
This commit is contained in:
parent
ec28b77a93
commit
15a2c27864
1 changed files with 1 additions and 1 deletions
|
@ -24,6 +24,6 @@ def response(resp):
|
|||
url = urljoin(base_url, link.attrib.get('href'))
|
||||
title_links = result.xpath('.//span[@class="details"]//a[contains(@class, "t")]')
|
||||
title = ''.join(title_links[0].xpath('.//text()'))
|
||||
content = html.tostring(link)+'<br />'+link.attrib.get('title')
|
||||
content = html.tostring(link)+'<br />'+link.attrib.get('title', '')
|
||||
results.append({'url': url, 'title': title, 'content': content})
|
||||
return results
|
||||
|
|
Loading…
Reference in a new issue