HSharp
HSharp copied to clipboard
HSharp is a library used to analyse markup language like HTML easily and fastly.
Auto dependencies upgrade by bot. This is automatically generated by bot. The bot tries to fetch all possible updates and modify the project files automatically. This pull request may break...
` var httpService = new HTTPService(null); var strData =await httpService.Get(new Aiursoft.Pylon.Models.AiurUrl("https://bsaber.com/"),false); var htmlDoc= HtmlConvert.DeserializeHtml(strData); ` 就解析 https://bsaber.com/ 这个网站 DeserializeHtml 一直不返回,测试过最长时间 大概 10分钟 nuget上最新的版本
大佬您好,经常在油管看到您的视频学习,受益匪浅 我也是一名C# .NET 的死忠粉 看到项目比较感兴趣,拜读了一下您的代码 关于HDoc获取元素的地方,略有不同看法,请允许在下想发表一点愚见。 * [ ] 在解析时候,是否应该除List以外,再用一个Dictionary来做索引, 以提高按名称查找的效率, 每次都Children.Find(t => t.TagName == tagName); 会全局遍历,元素多的时候是否会性能不佳呢。 * [ ] 关于索引器中的处理,HTag this[string tagName],HTag this[int tagIndex] 这2个索引器中没有做任何异常处理,如果是示例中的连续调用(newDocument["html"]["head"]["meta",0]) 如果填错了名字或者索引,造成了空指针或者越界异常,不太容易查找错误地点。 是否应该throw明确的异常信息,是哪个名字错了,或者哪个索引错了。 * [...