コード例 #1
0
 static void Main(string[] args)
 {
     List<CPUData> list = new List<CPUData>();
     Scrap scrap = new Scrap();
     DBconnection.DeleteDB();
     ////*[@id="rt2368"]/div/text()
     ////*[@id="rt2069"]/div/text()
     //*/div/text()
     //list = scrap.grab_page_return_list_of_strings("https://www.cpubenchmark.net/high_end_cpus.html#", "//*/div/text()");
     list = scrap.GameRankingsFromPage();
     foreach (CPUData cpu in list)
     {
         DBconnection.addCPU(cpu);
     }
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new Chart());
 }
コード例 #2
0
        static void Main(string[] args)
        {
            List <CPUData> list  = new List <CPUData>();
            Scrap          scrap = new Scrap();

            DBconnection.DeleteDB();
            ////*[@id="rt2368"]/div/text()
            ////*[@id="rt2069"]/div/text()
            //*/div/text()
            //list = scrap.grab_page_return_list_of_strings("https://www.cpubenchmark.net/high_end_cpus.html#", "//*/div/text()");
            list = scrap.GameRankingsFromPage();
            foreach (CPUData cpu in list)
            {
                DBconnection.addCPU(cpu);
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Chart());
        }