Пример #1
0
        private ResponseArticleModel LoadSubDomainArticle(HtmlDocument document, BaseArticleInfoModel baseArticle)
        {
            ResponseArticleModel article = new ResponseArticleModel
            {
                Title = baseArticle.Title,
                PublishedDateTimeUtc = baseArticle.PublishedDateTimeUtc,
                Content = GenerateContent(document, "div", "p", "opennewstext", false)
            };

            return(article);
        }
Пример #2
0
        private ResponseArticleModel LoadMainArticle(HtmlDocument document, BaseArticleInfoModel baseArticle)
        {
            ResponseArticleModel article = new ResponseArticleModel
            {
                Title = baseArticle.Title,
                PublishedDateTimeUtc = baseArticle.PublishedDateTimeUtc,
                ParseDateTime        = DateTime.UtcNow,
                Content = GenerateContent(document, "span", "p", "article-body")
            };

            return(article);
        }