private static CookieContainer GetCookieContainer(IMahuaApi api)
        {
            var container = new CookieContainer();
            var cookies   = api.GetCookies();

            foreach (var s in cookies.Split(';').Select(x => x.Trim()))
            {
                var nameValue = s.Split('=');
                container.Add(new Cookie(nameValue[0], nameValue[1], "/", ".qq.com"));
            }

            return(container);
        }