title: Getting rid of "before you continue to google" with jsoup
body: <p>I'm trying to get google search engine results in this way:</p>
  <pre><code>    Document document = Jsoup.connect(&quot;https://www.google.com/search?q=example&quot;).userAgent(&quot;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11 Firefox/19.0&quot;).timeout(3000).get();
      Elements temp = document.select(&quot;div.rc&quot;);
  </code></pre>
  <p>but I'm getting the before you continue to google page, which doesn't allow me to get the information i want.</p>
  <p>I also tried this:</p>
  <pre><code>    try {
          Map&lt;String, String&gt; cookies = Jsoup.connect(&quot;https://www.google.com/search?q=example&quot;).execute().cookies();
          Document document = Jsoup.connect(&quot;https://www.google.com/search?q=example&quot;).userAgent(&quot;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11 Firefox/19.0&quot;).timeout(3000).cookies(cookies).get();
          Elements temp = document.select(&quot;div.rc&quot;);
  
      } catch (IOException e) {
          // error handling
      }
  </code></pre>
  <p>to connect with those cookies, but it doesn't work too. Is there a way to get around that annoying page?</p>
  <p>Thanks in advance</p>