C# Class LinkCrawler.Utils.Helpers.MarkupHelpers

显示文件 Open project: hmol/LinkCrawler

Public Methods

Method Description
GetAllUrlsFromMarkup ( string markup, bool checkImageTags ) : List
GetValidUrlListFromMarkup ( string markup, IValidUrlParser parser, bool checkImages ) : List

Get's a list of all urls in markup and tires to fix the urls that Restsharp will have a problem with (i.e relative urls, urls with no sceme, mailto links..etc)

Private Methods

Method Description
GetAllUrlsFromHtmlDocument ( string markup, string searchPattern, string attribute ) : List

Method Details

GetAllUrlsFromMarkup() public static method

public static GetAllUrlsFromMarkup ( string markup, bool checkImageTags ) : List
markup string
checkImageTags bool
return List

GetValidUrlListFromMarkup() public static method

Get's a list of all urls in markup and tires to fix the urls that Restsharp will have a problem with (i.e relative urls, urls with no sceme, mailto links..etc)
public static GetValidUrlListFromMarkup ( string markup, IValidUrlParser parser, bool checkImages ) : List
markup string
parser IValidUrlParser
checkImages bool
return List