コード例 #1
0
        public string CrawlMatchResultByTime()
        {

            try
            {
                CrawlFirstPageData crawldata = new CrawlFirstPageData();

                DataTable ds = crawldata.GetMatchListByTime();
                for (int j = 0; j < ds.Rows.Count; j++)
                {
                    string matchlink = Convert.ToString(ds.Rows[j]["BettingLink"]).Replace("/betting-markets", "/winner");
                    string matchid = ds.Rows[j]["id"].ToString();
                    CrawlChampionLeauge(matchid.ToString(), matchlink, "");
                }

                return "Command completed successfully";
            }
            catch (Exception ex)
            {
                return ex.Message;
            }
        }
コード例 #2
0
 public DataTable GetMatchListByTime()
 {
     CrawlFirstPageData crawl = new CrawlFirstPageData();
     return crawl.GetMatchListByTime();
 }