/// <summary> /// Construct a SpiderParseHTML object. This object allows /// you to parse HTML, while the spider collects link /// information in the background. /// </summary> /// <param name="baseURL">The URL that is being parsed, this is used for relative links.</param> /// <param name="istream">The InputStream being parsed.</param> /// <param name="spider">The Spider that is parsing.</param> public SpiderParseHTML(Uri baseURL, SpiderInputStream istream, Spider spider) : base(istream) { this.stream = istream; this.spider = spider; this.baseURL = baseURL; this.depth = spider.Workload.GetDepth(baseURL); }
/// <summary> /// Construct a SpiderParseHTML object. This object allows /// you to parse HTML, while the spider collects link /// information in the background. /// </summary> /// <param name="baseURL">The URL that is being parsed, this is used for relative links.</param> /// <param name="istream">The InputStream being parsed.</param> /// <param name="spider">The Spider that is parsing.</param> public SpiderParseHTML(Uri baseURL, SpiderInputStream istream, Spider spider) : base(istream) { this.stream = istream; this.spider = spider; this.baseURL = baseURL; this.depth = spider.Workload.GetDepth(baseURL); }