def body(self): # author : ajbharani # article -> body -> sec(recursive) -> p # 'body' result = '' bodies = self.dom.getElementsByTagName('body') for body in bodies: ph = ParserHelper() ph.rectext(body, 'p') result += ph.rtext return result
def body(self): # author : ajbharani # article -> body -> sec(recursive) -> p # 'body' result = '' bodies = self.dom.getElementsByTagName('body') for body in bodies: ph = ParserHelper() ph.rectext(body,'p') result += ph.rtext return result
def abstract(self): # author : ajbharani # article -> front -> abstract # 'abstract' result = '' abstracts = self.dom.getElementsByTagName('abstract') for abstract in abstracts: ph = ParserHelper() ph.rectext(abstract, 'p') result += ph.rtext return result
def abstract(self): # author : ajbharani # article -> front -> abstract # 'abstract' result = '' abstracts = self.dom.getElementsByTagName('abstract') for abstract in abstracts: ph = ParserHelper() ph.rectext(abstract,'p') result += ph.rtext return result