Example #1
0
        public ScraperHomeLessStatusModel StatusWorkspace()
        {
            var state = (ScraperHomeLessStateModel)_state;

            state.WorkPhase = "StatusWorkspace";

            _log("Start");

            var scrapeDate          = _statusWorkspace_ScrapeDateBase(state);
            var amountItemsFromPath = _statusWorkspace_AmountItemsFromPathBase(state);
            var amountPages         = _statusWorkspace_AmountPagesBase(state);

            var amountItemsFromPages       = _statusWorkspace_AmountItemsFromPages(state);
            var amountItemUniquesFromPages = _statusWorkspace_AmountItemUniquesFromPages(state);

            var status = new ScraperHomeLessStatusModel()
            {
                ScrapeDate                 = scrapeDate,
                AmountItemsFromPath        = amountItemsFromPath,
                AmountPages                = amountPages,
                AmountItemsFromPages       = amountItemsFromPages,
                AmountItemUniquesFromPages = amountItemUniquesFromPages,
            };

            _log("End");

            return(status);
        }
Example #2
0
 public void PrintStatus(ScraperHomeLessStatusModel status)
 {
     _log($"ScrapeDate: {status.ScrapeDate}");
     _log($"AmountItemsFromPath: {status.AmountItemsFromPath}");
     _log($"AmountPages: {status.AmountPages}");
     _log($"AmountItemsFromPages: {status.AmountItemsFromPages}");
     _log($"AmountItemDuplicatesFromPages: {status.AmountItemDuplicatesFromPages}");
     _log($"AmountItemUnicsFromPages: {status.AmountItemUniquesFromPages}");
 }