title: How to extract src of an image using Jsoup
body: <p>I am trying to scrap image src of a product from the online shopping site Flipkart using Jsoup.Here is the code i tried.</p>
  
  <pre><code>String url = "http://www.flipkart.com/moto-g-3rd-generation/p/itme9ysjr7mfry3n?pid=MOBE6KK93JG5WKB2&amp;cmpid=content_mobile_8965229628_gmc_pla&amp;tgi=sem%2C1%2CG%2C11214002%2Cg%2Csearch%2C%2C50314733420%2C1o1%2C%2C%2Cc%2C%2C%2C%2C%2C%2C%2C&amp;gclid=COXtgdLyiMoCFUyhaAodIawO8w";   
  
  Document doc = Jsoup.connect(url).get();
  
  Elements imageElements = doc.select("img[class=productImage]");
  
  String img = imageElements.attr("src");
  
  System.out.println(img);
  </code></pre>
  
  <p>Here is the HTML code of the from the website .
  <a href="http://i.stack.imgur.com/KHty5.png" rel="nofollow">screenshot of html code </a></p>