From 7c2f7ebb237723a123c640e3148e2e6c451efa5a Mon Sep 17 00:00:00 2001 From: milek7 Date: Sat, 23 Jan 2016 13:09:26 +0100 Subject: [PATCH] support for images --- wolframalpha/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wolframalpha/__init__.py b/wolframalpha/__init__.py index afcda38..efe2733 100644 --- a/wolframalpha/__init__.py +++ b/wolframalpha/__init__.py @@ -51,11 +51,16 @@ class Pod(object): def text(self): return self.main.text + @property + def img(self): + return self.main.img + class Content(object): def __init__(self, node): self.node = node self.__dict__.update(node.attrib) self.text = node.find('plaintext').text + self.img = node.find('img').attrib['src'] class Client(object): """