title: Download first 1000 images from google search
body: <p>I do some search to google images</p>
  
  <p><a href="http://www.google.com/search?hl=en&amp;q=panda&amp;bav=on.2,or.r_gc.r_pw.r_cp.r_qf.,cf.osb&amp;biw=1287&amp;bih=672&amp;um=1&amp;ie=UTF-8&amp;tbm=isch&amp;source=og&amp;sa=N&amp;tab=wi&amp;ei=qW4FUJigJ4jWtAbToInABg">http://www.google.com/search?hl=en&amp;q=panda&amp;bav=on.2,or.r_gc.r_pw.r_cp.r_qf.,cf.osb&amp;biw=1287&amp;bih=672&amp;um=1&amp;ie=UTF-8&amp;tbm=isch&amp;source=og&amp;sa=N&amp;tab=wi&amp;ei=qW4FUJigJ4jWtAbToInABg</a></p>
  
  <p>and the result is thousands of photos. I am looking for a shell script that will download the first <code>n</code> images, for example 1000 or 500.</p>
  
  <p>How can I do this ?</p>
  
  <p>I guess I need some advanced regular expressions or something like that. I was trying many things but to no avail, can someone help me please?</p>