title: parse google search results
body: <p>How can I parse Google results as in my example?</p>
  
  <pre><code>&lt;div class="srg"&gt;
  &lt;li class="g"&gt;...&lt;/li&gt;
  &lt;li class="g"&gt;...&lt;/li&gt;
  &lt;li class="g"&gt;...&lt;/li&gt;
  &lt;li class="g"&gt;...&lt;/li&gt;
  &lt;li class="g"&gt;...&lt;/li&gt;
  &lt;li class="g"&gt;...&lt;/li&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is my code for parsing Google results, selectNodes remains null.</p>
  
  <pre><code>HtmlAgilityPack.HtmlDocument doc1 = new HtmlAgilityPack.HtmlDocument();
  StreamReader reader = new StreamReader(WebRequest.Create("http://www.google.com/?gws_rd=ssl#q=(404)8271500").GetResponse().GetResponseStream(), Encoding.Default); //put your encoding            
  doc1.Load(reader);
  
  var selectNodes = doc1.DocumentNode.SelectNodes("//li[@class='g']");
  foreach (var node in selectNodes)  
  {
      //node.InnerText will give you the text content of the li tags ...
  }
  </code></pre>