Quantcast
Channel: htmlagilitypack Forum Rss Feed
Browsing all 450 articles
Browse latest View live

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 Article


New 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 Article


New 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 Article

New 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 Article

New 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 Article


New 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 Article

New 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 Article

New 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 Article


New 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 Article


New 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 Article

New Post: Beginner needs help

PS ... why doesn't the bold & italic formatting work on here?

View Article

New 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 Article

New 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 Article


Image may be NSFW.
Clik here to view.

New 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 Article

Image may be NSFW.
Clik here to view.

New 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


New 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 Article

New 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 Article


New 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 Article

New 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 Article

New 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
Browsing all 450 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>