logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 15a2c27864eeb191e3bb2fe30c5a57722b3a6d29
parent: ec28b77a93630fe73949d789467140984f446e12
Author: asciimoo <asciimoo@gmail.com>
Date:   Sun, 20 Oct 2013 20:53:12 +0200

[fix] link attrib

Diffstat:

Msearx/engines/deviantart.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/searx/engines/deviantart.py b/searx/engines/deviantart.py @@ -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