public void RetweetDataExtractor() { try { if (!string.IsNullOrEmpty(txtRetweetCount.Text) && NumberHelper.ValidateNumber(txtRetweetCount.Text)) { RetweetExtractCount = Convert.ToInt32(txtRetweetCount.Text); TwitterDataScrapper.RetweetExtractcount = RetweetExtractCount; } else { AddToTweetCreatorLogs("Entered Count incorrect.Setting Default Count 10"); } TwitterDataScrapper DataScraper = new TwitterDataScrapper(); foreach (string item in lstUserId_Retweet) { AddToTweetCreatorLogs("Extracting ReTweets For " + item); List<string> TweetData = DataScraper.GetRetweetData_Scrape(item); AddToTweetCreatorLogs(TweetData.Count + " Retweet From User : "******":"); if (arry.Length == 3) { AddToTweetCreatorLogs("---------------------------------------------------------"); AddToTweetCreatorLogs(arry[0] + " : " + arry[1]); AddToTweetCreatorLogs(arry[2]); clsDBQueryManager DataBase = new clsDBQueryManager(); DataBase.InsertDataRetweet(arry[0], arry[1], arry[2]); } else { } } }).Start(); } else { AddToTweetCreatorLogs("Sorry No ReTweets For " + item); } } AddToTweetCreatorLogs("Finished Extracting ReTweets"); AddToTweetCreatorLogs("ReTweets Stored In -" + Globals.Path_RETweetExtractor); if (txtRetweetSingle.InvokeRequired) { txtRetweetSingle.Invoke(new MethodInvoker(delegate { txtRetweetSingle.Text = ""; })); } if (txtRetweetFile.InvokeRequired) { txtRetweetFile.Invoke(new MethodInvoker(delegate { txtRetweetFile.Text = ""; })); } } catch (Exception ex) { Globussoft.GlobusFileHelper.AppendStringToTextfileNewLine(DateTime.Now + " --> Error --> RetweetDataExtractor() --> " + ex.Message, Globals.Path_TweetCreatorErroLog); Globussoft.GlobusFileHelper.AppendStringToTextfileNewLine("Error --> RetweetDataExtractor() --> " + ex.Message, Globals.Path_TwtErrorLogs); } }