diff options
Diffstat (limited to 'searx/engines/deviantart.py')
| -rw-r--r-- | searx/engines/deviantart.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/searx/engines/deviantart.py b/searx/engines/deviantart.py index d598507ac..95d96968d 100644 --- a/searx/engines/deviantart.py +++ b/searx/engines/deviantart.py @@ -24,6 +24,7 @@ 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', '') - results.append({'url': url, 'title': title, 'content': content}) + img_src = link.xpath('.//img')[0].attrib['src'] + print img_src + results.append({'url': url, 'title': title, 'img_src': img_src, 'template': 'images.html'}) return results |