Possible Duplicate:
Parsing web pages
I am trying to parse the content of web-page in C#. This is the code that I use:
WebRequest request = WebRequest.Create("URL");
WebResponse response = request.GetResponse();
Stream data = response.GetResponseStream();
string html = String.Empty;
using (StreamReader sr = new StreamReader(data))
{
html = sr.ReadToEnd();
}
but the problem is that I get all data that the html contains.
Do you have any suggestion on how to take useful data in a 'clean' way or I have to build my own parser? For example: A post containing a title and a text related to it, blog-like format.