New Post: Difficulty with XPath to get a single result
I'm not yet very familiar with XPath, but what I'm trying to do shouldn't be this difficult. Basically, I'm periodically checking Google finance to see what the current stock price of a few companies....
View ArticleNew Post: Strong Name for PCL Binary
I just download the nuget package for 1.4.9 and the both of the Portable Class Library versions of HtmlAgilityPack.dll do not have strong names. Was this an oversight?
View ArticleNew Post: problems with DocumentNode.SelectNodes() parameters
Hi, I'm trying to get the following information in the following HTML document (07:34,16:22,08:47) at the bottom of the page . How should I parse the HTML? I have problems finding the right...
View ArticleNew Post: problems with DocumentNode.SelectNodes() parameters
I am not sure what you are trying to parse out of that HTML. But, for example, if you need href of all anchor tags, you could do:foreach (var link in doc.DocumentNode.SelectNodes("//a[@href]")) {...
View ArticleNew Post: StackOverflowException in HtmlNodeCollection.GetEnumerator()
Hi! I'm writing a web crawler, and I get a StackOverflowException in HtmlNodeCollection.GetEnumerator(), but on the call stack there are a lot of HtmlNode.CloseNode() calls:...
View ArticleNew Post: error on get Attributes[].Value
<a title="one-punch-man-ep-01-viet-sub" data-episode-tap="01" data-episode-id="127345" data-type="watch" class=""...
View ArticleNew Post: Malformed HTML parsing problem - unclosed li element within a form
Hej there, I know this discussion is quiet old but I just encountered the same problem with the unclosed <li> tag. I've searched for hours because I did not believe the parser could be the...
View ArticleNew Post: HtmlAgilityPack parsing html using templates
Hi, I have heard from my friend that it is possible to parse html document using HTMLAgilityPack with predefined template.Could you please suggest whether it is possible to define template and parse...
View ArticleNew Post: Nuget Install is prompting for C# files.
Hello, Can anyone tell me how to stop Html Agility Pack from prompting for C# files? I installed Html Agility Pack via Nuget.https://www.nuget.org/packages/HtmlAgilityPack But when I try to run or...
View ArticleNew Post: HTMLAgility in UWP App => List all url of an website
Hello, I want to List URL of an Website. It works via Regex and Agility pack - on Windows form Apps. Now I want to perform this Task in a UWP app. Unfortunately there is no System.web.UI; So I tied...
View ArticleNew Post: HtmlAgilityPack parsing html using templates
Hi everyone; Please could you help me I have a big problem I got this web page http://www.brh.net/tableaux/tauxdujour.htm and I want to extrat this data from the table where <td class="x187">...
View ArticleNew Post: HtmlAgilityPack parsing html using templates
Can you guys show your code, or make a sample to demonstrate it? Or fabricate an example that works for testing but not from real source?Fra:[email removed]Sendt:07.04.2016 18:14Til:[email...
View ArticleNew Post: how to load an encoded string into htmlDocument object
Hi I am aware of the following code to load an html string string astr = "<p> This is first Program </p>"; var htmlDoc = new HtmlAgilityPack.HtmlDocument(); // load the html string to...
View ArticleNew Post: Method not found: 'Int32 HtmlAgility...
Hi, I have recently started working on an old project which uses version 1.3.0.0 version of this library. I restored the same package version and tried running the project. There is a part of code...
View ArticleNew Post: Expanding HtmlConvert.cs to handle List Items
This works however all the lists are numerical. If you can figure out how to have the style change (decimal then alpha then roman...) for sub-ordered lists let me know. Add the following to: internal...
View ArticleNew Post: Can't seem to remove nodes
Embarrasingly trivial problem, but I've only ever used HAP for scraping websites and never tried to manipulate the html. I'm trying to remove an img node and neither of the approaches listed below seem...
View ArticleNew Post: HAP xpath finder
Can anyone tell me which .net framework and version of HAP this HAP xpath finder using ?https://hapxpathfinder.codeplex.com/
View ArticleNew Post: gzip encoding
Has this been incorporated into the NuGet package? Still seeing this happening today.
View Article