From 15a2c27864eeb191e3bb2fe30c5a57722b3a6d29 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Sun, 20 Oct 2013 20:53:12 +0200 Subject: [PATCH] [fix] link attrib --- searx/engines/deviantart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/deviantart.py b/searx/engines/deviantart.py index c46a19a63..d598507ac 100644 --- 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)+'
'+link.attrib.get('title') + content = html.tostring(link)+'
'+link.attrib.get('title', '') results.append({'url': url, 'title': title, 'content': content}) return results