support for images

This commit is contained in:
milek7 2016-01-23 13:09:26 +01:00
parent 2269227321
commit 7c2f7ebb23

View File

@ -51,11 +51,16 @@ class Pod(object):
def text(self): def text(self):
return self.main.text return self.main.text
@property
def img(self):
return self.main.img
class Content(object): class Content(object):
def __init__(self, node): def __init__(self, node):
self.node = node self.node = node
self.__dict__.update(node.attrib) self.__dict__.update(node.attrib)
self.text = node.find('plaintext').text self.text = node.find('plaintext').text
self.img = node.find('img').attrib['src']
class Client(object): class Client(object):
""" """