示例#1
0
        private static void PrintSiteEagerDescending(PageCrawlEndedData data)
        {
            var str = (data.Title.Replace('\n', ' ').Trim() + " " + data.URL.Trim()).Trim();

            var padding = "";

            if (data.Depth > 0)
            {
                for (var i = 0; i < data.Depth - 1; i++)
                {
                    padding += "|";
                }

                padding += "┕ ";
            }

            Console.WriteLine(padding + str);
        }
示例#2
0
 private static void PrintSiteLevelDescending(PageCrawlEndedData data)
 {
     Console.WriteLine(
         (data.Depth + " " + data.Title.Replace('\n', ' ').Trim() + " " + data.URL.Trim()).Trim());
 }