コード例 #1
0
        public WatchCasioBgScrappeDTO ScrapeAWatch(string WatchUrl)
        {
            WatchPageScrapper      watchScrap   = new WatchPageScrapper(WatchUrl);
            WatchCasioBgScrappeDTO scrapedWatch = watchScrap.GetWatchScrapped();

            return(scrapedWatch);
        }
コード例 #2
0
        public List <WatchCasioBgScrappeDTO> ScrapeAllWatches()
        {
            List <WatchCasioBgScrappeDTO> scrapedWatchesList = new List <WatchCasioBgScrappeDTO>();

            foreach (var watchUrl in allWatchLinks)
            {
                // take into account a little waiting later refactor
                System.Threading.Thread.Sleep(1000);
                WatchPageScrapper      watchScrap   = new WatchPageScrapper(watchUrl);
                WatchCasioBgScrappeDTO scrapedWatch = watchScrap.GetWatchScrapped();
                scrapedWatchesList.Add(scrapedWatch);
            }
            return(scrapedWatchesList);
        }