title: How to scrape images from a web site with javascript and servlets
body: <p>I have a web page that has the following content (I've changed the URL in the src tag for privacy purposes, otherwise viewing the page source is identical):</p>
  
  <pre><code>&lt;HTML&gt;
  &lt;BODY&gt;
  
  &lt;script type="text/javascript" src="http://localhost/servlet?publicKey=abcdefg12345678&amp;amp"&gt;&lt;/script&gt;
  
  &lt;/BODY&gt;
  &lt;/HTML&gt;
  </code></pre>
  
  <p>The resulting page displays an image when viewed in a browser and I'm trying to scrape that image.  After I scrape the image I attempt to index the images (see www.tineye.com for the idea of image search engine) and store them.  If anybody knows how to scrape images from such web sites please let me know.</p>
  
  <p>Note: the src does not contain ANY information about the image... it only calls the given servlet with a public key as the parameter.  What I've posted above is EXACTLY what I see when I click View->Page Source in my browser (Firefox). Of course I've changed the actual URL and the public key for privacy issues, otherwise everything is identical.</p>
  
  <p>I've seem similar techniques used for some banners: <a href="http://coldjava.hypermart.net/servlets/banner.htm" rel="nofollow noreferrer">http://coldjava.hypermart.net/servlets/banner.htm</a></p>