Пример #1
0
        public CookieContainer ReturnCookieCookieContainer(string uid, string psw)
        {
            WeiboEntity weibo = new WeiboEntity();

            CookieContainer cc = new CookieContainer();

            if (SinaLogin(uid, psw, cc) == 0)
            {
                Console.WriteLine("已获取到cookies,准备进行采集");
                return(cc);
            }
            else
            {
                return(null);
            }
        }
Пример #2
0
        public CookieContainer ReturnCookieCookieContainer(string uid, string psw)
        {
            WeiboEntity weibo = new WeiboEntity();

            CookieContainer cc = new CookieContainer();
            if (SinaLogin(uid, psw, cc) == 0)
            {
                Console.WriteLine("已获取到cookies,准备进行采集");
                return cc;
            }
            else return null;
        }