private static async Task GetMainSubStep_CookiedGetMain() { htmlMain = await ExpManager.CookiedGetUrl( "https://jingyan.baidu.com/user/nuc", "https://jingyan.baidu.com/" ); }
public static async Task <bool> CookielessGetReward(string tp, int cid, int pg) { string rewardUrl = "https://jingyan.baidu.com/patch?tab=" + tp + "&cid=" + cid + "&pn=" + pg * 15; string rewardPage = await ExpManager.CookiedGetUrl( rewardUrl, "https://jingyan.baidu.com/" ); return(ParseReward(rewardPage, rewardUrl)); }
//private static string thread0Ret; //private static string thread1Ret; //private static string thread2Ret; //private static string thread3Ret; //private static string thread4Ret; private static async Task GetContentsSubStep_CookiedGetContentPage(int pg, int threadID) { string result = await ExpManager.CookiedGetUrl( "https://jingyan.baidu.com/user/nucpage/content?tab=exp&expType=published&pn=" + pg * 20, "https://jingyan.baidu.com/user/nuc" ); lock (htmlContentPages)//not sure is necessary { //Debug.WriteLine(Task.CurrentId + " : 成功进入htmlContentPages锁定区域"); htmlContentPages[pg] = result; } //if (htmlContentPages[pg] == "FAILED") return false; //return true; }