예제 #1
0
 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
예제 #2
0
	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
예제 #3
0
 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
예제 #4
0
	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