title: Parsing the useful content of web page in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1786689/parsing-web-pages">Parsing web pages</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to parse the content of web-page in C#. This is the code that I use:</p>
  
  <pre><code>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();
  }
  </code></pre>
  
  <p>but the problem is that I get all data that the html contains.</p>
  
  <p>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.</p>