예제 #1
0
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"""
예제 #2
0
    def __init__(self, content):
        self.dom = BeautifulSoup(content, 'lxml')
        self.article_parser = JianshuArticle(self.dom)

        return
예제 #3
0
 def __init__(self, content):
     self.dom = BeautifulSoup(content, 'lxml')
     self.article_parser = JianshuArticle()