class BaseParser(ParserTools): def __init__(self, content): self.dom = BeautifulSoup(content, 'lxml') self.article_parser = JianshuArticle() def get_answer_list(self): answer_list = [] self.article_parser.set_dom(self.dom) answer_list.append(self.article_parser.get_info()) return answer_list def get_extra_info(self): u"""
def __init__(self, content): self.dom = BeautifulSoup(content, 'lxml') self.article_parser = JianshuArticle(self.dom) return
def __init__(self, content): self.dom = BeautifulSoup(content, 'lxml') self.article_parser = JianshuArticle()