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); } }
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; }