title: mask java jsoup web crawler as google bot to download web pages
body: <p>I'm using Jsoup in my web crawler. This is the code i use to download web pages.</p>
  
  <pre><code>String ua = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30";
  Document doc = Jsoup.connect(url).userAgent(ua).timeout(20000).get(); 
  Elements links = doc.select("a[href]");
  </code></pre>
  
  <p>How can i mask my java program as a googlebot?</p>