Parsing HTML

dotnetnoob

New member
Joined
Nov 25, 2009
Messages
1
Programming Experience
Beginner
Hi there,

I'm currently grabbing HTML from my site using webrequest and storing it in a string. I'm looking to take this string, and scrape all of the prices in order to calculate this against my cost price (for a consistent profit spreadsheet). What is the most feasible way to do this? Would using a webbrowser control be a better idea?

Any insight would be most appreciated.
 
Usually what one want from a html document is text between certain tags. Using the WebBrowser has the benefit that it parses the document for you, so you can use its Document tree. I've also used Html Agility Pack to do this on several occations. Other options include regular string operations and Regex.
 
Back
Top