parameters: (self, nickname)
docstring: :param nickname: 公众号名称
docstring_summary: :param nickname: 公众号名称
docstring_tokens: : param nickname : 公众号名称
function: def __init__(self, nickname):
          """
          :param nickname: 公众号名称
          """
          self.nickname = nickname
          # 生成器转化成为list 赋值给self.posts
          self.posts = []
          self.total_num = 0
          self.crawled_num = 0
          self.uncrawled_num = 0
          for p in get_collection_article(nickname):
              # 过滤掉没有爬取阅读数据的文章
              if 'read_num' in p:
                  self.posts.append(p)
                  self.crawled_num += 1
              else:
                  self.uncrawled_num += 1
              self.total_num += 1
          #
          if self.crawled_num != 0:
              self.gzh = GZH(self.posts)
              self.gzh.postsToDataframe()
              # echarts的option_data
              self.option_data = {}
              # 公众号名称
              self.option_data['account_name'] = nickname
              # 累计发文总数
              self.option_data['posts_info'] = ' 有效文章%d 其中%d具有阅读数据 还剩%d尚无阅读数据'%\
                                                    (self.total_num,self.crawled_num,self.uncrawled_num)
function_tokens: def __init__ ( self , nickname ) : self . nickname = nickname # 生成器转化成为list 赋值给self.posts self . posts = [ ] self . total_num = 0 self . crawled_num = 0 self . uncrawled_num = 0 for p in get_collection_article ( nickname ) : # 过滤掉没有爬取阅读数据的文章 if 'read_num' in p : self . posts . append ( p ) self . crawled_num += 1 else : self . uncrawled_num += 1 self . total_num += 1 # if self . crawled_num != 0 : self . gzh = GZH ( self . posts ) self . gzh . postsToDataframe ( ) # echarts的option_data self . option_data = { } # 公众号名称 self . option_data [ 'account_name' ] = nickname # 累计发文总数 self . option_data [ 'posts_info' ] = ' 有效文章%d 其中%d具有阅读数据 还剩%d尚无阅读数据'%\ ( self . total_num , self . crawled_num , self . uncrawled_num )