Skip to content

Commit 9712241

Browse files
author
ssinno28
committed
returning full html document as well
1 parent 6dab2d5 commit 9712241

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

UltimoScraper/Models/ParsedPage.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ namespace UltimoScraper.Models
55
{
66
public class ParsedPage
77
{
8+
public HtmlDocument Document { get; set; }
89
public List<ParsedWebLink> WebLinks { get; set; }
910
public IList<string> MatchedKeywords { get; set; }
1011
public HtmlNode BodyHtmlNode { get; set; }

UltimoScraper/Parsers/DefaultWebParser.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ private async Task<ParsedPage> ParsePages(
276276

277277
parsedPage.WebLinks = webLinks;
278278
parsedPage.BodyHtmlNode = bodyHtmlNode;
279+
parsedPage.Document = doc;
279280
parsedPage.Url = linkToPage.Value;
280281
parsedPage.Title = title;
281282
parsedPage.MatchedKeywords = matchedKeywords;

UltimoScraper/UltimoScraper.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</ItemGroup>
2727

2828
<PropertyGroup>
29-
<Version>1.0.73</Version>
29+
<Version>1.0.74</Version>
3030
<RepositoryUrl>https://github.com/ssinno28/WebScraper</RepositoryUrl>
3131
<RepositoryType>git</RepositoryType>
3232
<Description>WebScraper built in c# and allows for plug and play modifications.</Description>

0 commit comments

Comments
 (0)