Hello and thanks for reading. I am having a bit of trouble figuring out how to collect a piece of information from a web page. Here is the web page I want to retrieve the information from:

RuneScape - The Number 1 Free Multiplayer Game

I would like to retrieve the first "Price" of the item and collect the price every time I execute the code. I understand how to retrieve the source code of the webpage and split strings but how would I retrieve that price? Thanks.

7 Years
Discussion Span
Last Post by __avd

>but how would I retrieve that price?

Html Agility Pack - http://htmlagilitypack.codeplex.com/

This is an agile HTML parser that builds a read/write DOM and supports plain XPATH or XSLT (you actually don't HAVE to understand XPATH nor XSLT to use it, don't worry...). It is a .NET code library that allows you to parse "out of the web" HTML files. The parser is very tolerant with "real world" malformed HTML. The object model is very similar to what proposes System.Xml, but for HTML documents (or streams).

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.