public PageAnalysis AnalyzeNode(int id, string focusKeyword = null)
 {
     try
     {
         return(_analyzeService.AnalyzeWebPage(id, focusKeyword));
     }
     catch (Exception ex)
     {
         LogHelper.Error(typeof(RankOneApiController), "RankOne AnalyzeNode Exception", ex);
         throw;
     }
 }
        public PageAnalysisVm AnalyzeUrl(string url, string focusKeyword = null)
        {
            var analyzeService = new AnalyzeService();
            var result         = analyzeService.AnalyzeWebPage(url, focusKeyword);

            var analysis = new PageAnalysisVm
            {
                AnalyzerResults = result.AnalyzerResults,
                HtmlResult      = new HtmlResultVm
                {
                    ServerResponseTime = result.HtmlResult.ServerResponseTime,
                    Url  = result.HtmlResult.Url,
                    Size = result.HtmlResult.Size
                },
                Status = result.Status,
                Url    = result.Url
            };

            return(analysis);
        }