New 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 ArticleNew Post: Find Source: HtmlDocument.cs
will add more when the second time I run the project, the method загруза appears exception "Argument Exception was unhandled" - path contains invalid characters. What is than mean? How improve this?
View ArticleNew Post: Can I parse VML with this pack ?
Can I parse VML with this pack ? just tired one VML didn't work.. any plans to support it ? ( I am using net20 -- version ) examples..<html xmlns:v="urn:schemas-microsoft-com:vml"...
View ArticleNew Post: Can I parse VML with this pack ?
the vml is generated from outlook .. which has a table 3x2 and one of the row's cells has images which does not scale.. I saved it as word ( it was saved in web layout ), I changed it to print layout (...
View ArticleNew Post: Selecting node based on attribute / removing unknown attributes
Hi all ,"How can we select all the nodes which does not have the specified list of attributes' OR in other words i can say "How can i remove the unwanted attributes Eg: i have tags say...
View ArticleNew Post: Selecting node based on attribute / removing unknown attributes
I have tried a simple version and it seems to work. can we get a code sample to see whats happening. hp.LoadHtml("<tr id=\"test\">sdf<td>5</td> <td name=\"tess\" ><span...
View Article