New Post: Create HTML Document Object from HTML Source code
Hi, i'm a bit of a newbie to HTML Agility Pack and I'm developing on a windows 8 machine using Visual Studio 2012 express.I have a URL and I need to convert this HTML source code into a useable C#...
View ArticleNew Post: Silverlight 5 assemblies target Silverlight 4
The SL5 assemblies are actually targeting SL4 Getting the source and changing it gives a compile error on this line: StackFrame sf = new StackFrame(1, true); Changing to StackFrame sf = new...
View ArticleNew Post: DLL distribution problem
Hello! I use htmlagilitypack in my C# program and on some pc it won't work. Is there any special requirements for this dll?
View ArticleNew Post: Somebody can upgrade fizzler to support HtmlAgilityPack v1.4.6 ?
Did you overcome this problem? I need to use the Removemethod of HtmlAgilityPack which is present in v1.4.6. But not able to use it as fizzler is using the older version.
View ArticleNew Post: Wants to use your location
I am scraping a few prices from m.homedepot.com and the site prompts to allow it to determine my location. While I don't care, this seems to be a sticking point for getting search results back. On my...
View ArticleNew Post: Beginner needs help
Hello all ... I am trying to use HAP to pull player stats from this URL:http://sports.yahoo.com/nhl/stats/byposition?pos=C%2CRW%2CLW%2CD&sort=14&conference=NHL&year=season_2012 I would like...
View ArticleNew Post: Beginner needs help
Hi nbrege, Here is something to get you started.. public string GetHtml(string url){ WebRequest wr2 = WebRequest.Create(Url); wr2.Method = "GET"; ((HttpWebRequest)wr2).UserAgent = "Mozilla/5.0 (Windows...
View ArticleNew Post: Beginner needs help
Thanks for the reply. I'm getting this error now: An unhandled exception of type 'System.Xml.XPath.XPathException' occurred in System.Xml.dll Additional information: '//tr[contains(@class,\"ysprow\")]'...
View ArticleNew Post: Beginner needs help
No problem.. assume you fixed the errors issues in the code as didn't check before published. HTMLReader is a class I created :) Can you check the version that you are using as I tested the code to...
View ArticleNew Post: Beginner needs help
The version I'm using is 1.4.0.0 If I change the Xpath to "//tr[contains(@class,""ysprow"")]" then it works. (removed the 2 "\" characters) I will update to the latest version & try it again....
View ArticleNew Post: Beginner needs help
the 2 \ characters are used as escape chars for the string you might have the @sign at the beginning of the string. The version shouldn't matter in that case. On Thu, Feb 28, 2013 at 10:19 AM, nbrege...
View ArticleNew Post: Beginner needs help
The new version made no difference, still get the error when I include the 2 "\" characters previously noted. How would I get the stats from these 2 rows (the 16 & the 30)?<td...
View ArticleNew Post: Beginner needs help
string a = node.SelectSingleNode("./td[position() = 5]").InnerText; string pts = node.SelectSingleNode("./td[position() = 6]/span").InnerText; you are looking for the 6th td "td[position() = 6]" in the...
View ArticleNew Post: Beginner needs help
For some reason those 2 lines didn't paste in right. This is how they look in the page source code:<td class="yspscores">& nbsp;</td><td class="yspscores">16</td><td...
View ArticleNew Post: Beginner needs help
This is the final code that seems to work: Dim htmlWeb As New HtmlWeb() Dim document As HtmlAgilityPack.HtmlDocument = htmlWeb.Load(urlString) document.OptionFixNestedTags = True...
View ArticleNew Post: Beginner needs help
PS ... why doesn't the bold & italic formatting work on here?
View ArticleNew Post: Beginner needs help
No problem.. I see why the 2 "\" chars didn't work.. My sample was in C# and your using VB.Net :) best of luck with it..
View ArticleNew Post: Create HTML Document Object from HTML Source code
Are you trying to just grab the entire HTML source of that URL and put into a string file? If so, { HtmlWeb webfile = new HtmlWeb(); // load your the html source from the desired website into...
View ArticleNew Post: Find Source: HtmlDocument.cs
Good day everyone. I have a some problem, when execute my program. In the method of Loading, appear a dialog box to select the file. Don't understand why it occurs and how to remove it. How to make so...
View ArticleNew Post: Find Source: HtmlDocument.cs
Of course, i attached 'dll' file to my project, as u can c: can someone explain to me where I'm wrong
View Article