Esempio n. 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();
 }
Esempio n. 2
0
 public void SaveFile(string filePath, GeneralCrawlingData generalCrawlingData)
 {
     File.WriteAllText(filePath, CreateFileContent(generalCrawlingData));
 }