title: Get Google search results in c#
body: <p>I'm trying to get google search results using HTML Agility Pack, but I am not getting the correct page.  The page I am getting is Google's main page, </p>
  
  <p>This is the link the C#'s WebBrowser gives me : 
  <a href="https://www.google.com/#sclient=psy-ab&amp;hl=en&amp;site=&amp;source=hp&amp;q=hello+world&amp;pbx=1&amp;oq=hello+world&amp;aq=f&amp;aqi=&amp;aql=&amp;gs_sm=e&amp;gs_upl=14782l16242l0l16965l11l7l0l0l0l0l0l0ll0l0&amp;bav=on.2,or.r_gc.r_pw.,cf.osb&amp;fp=5586f0ad4776d5b3&amp;biw=268&amp;bih=250" rel="nofollow">https://www.google.com/#sclient=psy-ab&amp;hl=en&amp;site=&amp;source=hp&amp;q=hello+world&amp;pbx=1&amp;oq=hello+world&amp;aq=f&amp;aqi=&amp;aql=&amp;gs_sm=e&amp;gs_upl=14782l16242l0l16965l11l7l0l0l0l0l0l0ll0l0&amp;bav=on.2,or.r_gc.r_pw.,cf.osb&amp;fp=5586f0ad4776d5b3&amp;biw=268&amp;bih=250</a></p>
  
  <p>(if you try to paste it to a normal browser it will change to the URL below)</p>
  
  <p>This is if I use  a regular browser: 
  <a href="https://www.google.com/search?sclient=psy-ab&amp;hl=en&amp;site=&amp;source=hp&amp;q=hello+world&amp;pbx=1&amp;oq=hello+world&amp;aq=f&amp;aqi=&amp;aql=&amp;gs_sm=e&amp;gs_upl=14782l16242l0l16965l11l7l0l0l0l0l0l0ll0l0&amp;bav=on.2,or.r_gc.r_pw.,cf.osb&amp;biw=268&amp;bih=250&amp;cad=h" rel="nofollow">https://www.google.com/search?sclient=psy-ab&amp;hl=en&amp;site=&amp;source=hp&amp;q=hello+world&amp;pbx=1&amp;oq=hello+world&amp;aq=f&amp;aqi=&amp;aql=&amp;gs_sm=e&amp;gs_upl=14782l16242l0l16965l11l7l0l0l0l0l0l0ll0l0&amp;bav=on.2,or.r_gc.r_pw.,cf.osb&amp;biw=268&amp;bih=250&amp;cad=h</a></p>
  
  <pre><code>private void GotoGoogleButton(object sender, EventArgs e)
  {
      webBrowser1.Navigate(new Uri("https://www.google.com"));
  }
  
  private void getResultsButton(object sender, EventArgs e)
  {
      url = webBrowser1.Url.ToString();
      start_parsing(url);
  }
  
  public void start_parsing(string URL_) 
  {
      //This function is used to Parse Html source using Html Agility Pack into nodes, and take the important ones (mainly : a,form,iframe)
  
      HtmlAgilityPack.HtmlDocument document = webGet.Load(URL_);
      var metaTags = document.DocumentNode.SelectNodes("//a");
  
      // ...
  
      // Continue with parsing...
  }
  </code></pre>
  
  <p>How do I get the search results instead of the home page?</p>