当前位置: 首页>>代码示例>>C#>>正文


C# clsDBQueryManager.SelectUrl方法代码示例

本文整理汇总了C#中BaseLib.clsDBQueryManager.SelectUrl方法的典型用法代码示例。如果您正苦于以下问题:C# clsDBQueryManager.SelectUrl方法的具体用法?C# clsDBQueryManager.SelectUrl怎么用?C# clsDBQueryManager.SelectUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BaseLib.clsDBQueryManager的用法示例。


在下文中一共展示了clsDBQueryManager.SelectUrl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: finalUrlCollectionCampaignScraper

        private void finalUrlCollectionCampaignScraper(string CheckString, string Account)
        {
            Thread.Sleep(1 * 30 * 1000);
            if (Globals.IsStop_CompanyEmployeeScraperThread)
            {
                return;
            }
            Globals.lstCompanyEmployeeScraperThread.Add(Thread.CurrentThread);
            Globals.lstCompanyEmployeeScraperThread = Globals.lstCompanyEmployeeScraperThread.Distinct().ToList();
            Thread.CurrentThread.IsBackground = true;

            DataSet DS = new DataSet();
            DataTable DT = new DataTable();
            clsDBQueryManager DQ = new clsDBQueryManager();

            try
            {
                DS = DQ.SelectUrl(Account);
                DT = DS.Tables["tb_CampaignScraperURL"];
            }
            catch
            { }
            try
            {
                List<string> numburlpp = new List<string>();
                GlobusHttpHelper HttpHelper = _HttpHelper;
                if (SearchCriteria.starter)
                {

                    if (DT.Rows.Count > 0)
                    {
                        foreach (DataRow item in DT.Rows)
                        {
                            string urltemp = string.Empty;
                            try
                            {
                                string Url = Convert.ToString(item["Url"]);

                                if (Url.Contains("pp_profile_name_link"))
                                {
                                    if (SearchCriteria.starter)
                                    {
                                        urltemp = Url;
                                        numburlpp.Add(urltemp);

                                        Log("[ " + DateTime.Now + " ] => [ " + urltemp + " ]");

                                        Log("[ " + DateTime.Now + " ] => [ Fetching Data From URL ]");
                                        urltemp = urltemp + CheckString;
                                        bool check = CrawlingLinkedInPage(urltemp, ref HttpHelper);
                                        if (!check)
                                        {
                                            string stop = string.Empty;
                                        }
                                    }
                                }
                                else if (Url.Contains("/profile/view?"))
                                {
                                    urltemp = Url;
                                    numburlpp.Add(urltemp);

                                    Log("[ " + DateTime.Now + " ] => [ " + urltemp + " ]");

                                    Log("[ " + DateTime.Now + " ] => [ Fetching Data From URL ]");
                                    urltemp = urltemp + CheckString;
                                    bool check = CrawlingLinkedInPage(urltemp, ref HttpHelper);
                                    if (!check)
                                    {
                                        string stop = string.Empty;
                                    }
                                }

                                try
                                {
                                    urltemp = urltemp + "##";
                                    string Db_Url = string.Empty;
                                    int startindex = urltemp.IndexOf("CampaignScraper");
                                    string start = urltemp.Substring(startindex);
                                    int EndIndex = start.IndexOf("##");
                                    string End = start.Substring(0, EndIndex);
                                    string Rep = End;

                                    urltemp = urltemp.Replace(Rep, string.Empty).Replace("CampaignScraper", string.Empty).Replace("##",string.Empty);

                                    DQ.UpdateCampaignScraperUrl(urltemp);
                                }
                                catch
                                { }

                            }
                            catch
                            { }
                        }
                        Thread.Sleep(30 * 1000);
                        DS = DQ.SelectUrl(Account);
                        DT = DS.Tables["tb_CampaignScraperURL"];
                        if (DT.Rows.Count == 0)
                        {
                            //break;
                        }
//.........这里部分代码省略.........
开发者ID:brentscheidt,项目名称:inboard,代码行数:101,代码来源:LinkedInScrape.cs


注:本文中的BaseLib.clsDBQueryManager.SelectUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。