예제 #1
0
        public void DownloadTextFromWebPage()
        {
            var webCrawler = new WebSiteCrawler();
            var text       = webCrawler.GetRawTextFromSite(@"http://politiken.dk/oekonomi/2050/energi/ECE3050109/ekspert-olieselskaberne-har-fejlvurderet-og-taget-for-store-risici/");

            Console.WriteLine(text);
        }
예제 #2
0
        public void GetLinksFromSite()
        {
            var webCrawler = new WebSiteCrawler();
            var links      = webCrawler.GetAllLinksFromSite(@"http://politiken.dk");

            foreach (var link in links)
            {
                Console.WriteLine(link);
            }
        }