Пример #1
0
        public ScraperOnmapStatusModel StatusWorkspace()
        {
            var state = _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 amountItemDuplicatesFromPages = _statusWorkspace_AmountItemDuplicatesFromPages(state);

            var status = new ScraperOnmapStatusModel()
            {
                ScrapeDate          = scrapeDate,
                AmountItemsFromPath = amountItemsFromPath,
                //AmountPages = amountPages,
                //AmountItemsFromPages = amountItemsFromPages,
                //AmountItemUniquesFromPages = amountItemDuplicatesFromPages,
            };

            _log("End");

            return(status);
        }
Пример #2
0
 public void PrintStatus(ScraperOnmapStatusModel 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}");
 }