diff options
author | asciimoo <asciimoo@gmail.com> | 2013-10-20 20:53:12 +0200 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2013-10-20 20:53:12 +0200 |
commit | 15a2c27864eeb191e3bb2fe30c5a57722b3a6d29 (patch) | |
tree | 319748ad28969d0b9ce0e868629a589b0d246871 /searx/engines/deviantart.py | |
parent | ec28b77a93630fe73949d789467140984f446e12 (diff) | |
download | searxng-15a2c27864eeb191e3bb2fe30c5a57722b3a6d29.tar.gz searxng-15a2c27864eeb191e3bb2fe30c5a57722b3a6d29.zip |
[fix] link attrib
Diffstat (limited to 'searx/engines/deviantart.py')
-rw-r--r-- | searx/engines/deviantart.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)+'<br />'+link.attrib.get('title') + content = html.tostring(link)+'<br />'+link.attrib.get('title', '') results.append({'url': url, 'title': title, 'content': content}) return results |