code: def login(self, user=None, password=None, **kwargs):
          
          cookies = kwargs.get('cookies')
          if cookies is None:
              raise TypeError('雪球登陆需要设置 cookies， 具体见'
                              'https://smalltool.github.io/2016/08/02/cookie/')
          headers = self._generate_headers()
          self.s.headers.update(headers)
  
          self.s.get(self.LOGIN_PAGE)
  
          cookie_dict = helpers.parse_cookies_str(cookies)
          self.s.cookies.update(cookie_dict)
  
          log.info('登录成功')
docs: 雪球登陆， 需要设置 cookies
          :param cookies: 雪球登陆需要设置 cookies， 具体见
              https://smalltool.github.io/2016/08/02/cookie/
          :return: