示例#1
0
        public void startServer()
        {
            Helper.deleteAllLogs();



            webCom = new WebSiteCommunication();

            webCom.listen();

            //Console.WriteLine("/startRoutine-sports-NBA-MLB-scrapers-RealBet-MyBookie");
            //WebSiteCommunication.parseRequest("/startRoutine-sports-NBA-MLB-scrapers-RealBet-MyBookie");
            //Console.ReadKey();
        }
示例#2
0
        public MainArbitrage()
        {
            WebsiteScraper sportsAG = new SportsBookAG();
            WebsiteScraper realBet  = new RealBet();
            WebsiteScraper myBookie = new MyBookie();
            WebsiteScraper betDSI   = new BetDSI();

            activeScrapers.Add(sportsAG);
            activeScrapers.Add(realBet);
            activeScrapers.Add(myBookie);
            activeScrapers.Add(betDSI);

            webCom = new WebSiteCommunication();
            Helper.deleteAllLogs();
        }
示例#3
0
        //http://www.msn.com/en-us/sports/mlb/schedule
        //this one sends everything to the server, read from a txt file.
        public void bullshitPull()
        {
            int    counter = 0;
            string line;
            string output = "";

            int    currentMonth = 0;
            int    currentDay   = 0;
            string currentTime  = "";

            string homeTeam = "";
            string awayTeam = "";
            bool   midGame  = false;

            char[] delim = { '*' };
            int    noth  = 0;

            WebSiteCommunication web = new WebSiteCommunication();

            System.IO.StreamReader file = new System.IO.StreamReader("e:\\SportsBetting\\mlbOutput.txt");
            while ((line = file.ReadLine()) != null)
            {
                string[] temp = line.Split(delim);
                //string[] temp = Regex.Split(line, "[ | ]");

                //Console.WriteLine(line + "uh");
                if (temp.Count() > 2)
                {
                    Console.WriteLine(temp[0] + temp[1] + temp[2]);
                    web.sendCalendarGameToServer(temp[0], temp[1], temp[2]);
                }
            }

            file.Close();


            // DateTime test = new DateTime(DateTime.Now.Year,4,1, DateTime.Parse(testTime).Hour, DateTime.Parse(testTime).Minute, DateTime.Parse(testTime).Second);

            // Console.WriteLine(test);
            //Console.WriteLine(test.ToString("yyyy-MM-dd HH:mm:ss"));



            //Console.WriteLine(test);
            Console.ReadLine();
        }