Пример #1
0
 private string CreateFileContent(GeneralCrawlingData generalCrawlingData)
 {
     var csv = new StringBuilder();
     csv.AppendLine($"All jobs,{_crawlingStats.CountOfCrawledPagesContainingSpecificKeyword}")
         .AppendLine($"Xing jobs,{_crawlingStats.CountOfCrawledPagesContainingSpecificDetails}")
         .AppendLine($"Start crawling at,{generalCrawlingData.StartTime}")
         .AppendLine($"End crawling at,{generalCrawlingData.EndTime}");
     return csv.ToString();
 }
Пример #2
0
 public void SaveFile(string filePath, GeneralCrawlingData generalCrawlingData)
 {
     File.WriteAllText(filePath, CreateFileContent(generalCrawlingData));
 }