title: how to use imacros to scrape image url
body: <p>I'm playing with <code>imacross</code> to scrape website content, but I'm stuck trying to scrape image URLs from markdown like the following.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="dpimages-icons-box"&gt;
     &lt;a href="http://host1.com/1.jpg" class="lightbox" title="9558" rel="dpimages"&gt;&lt;img src="//host2.com/9558.jpg" alt="9558" title="9558"  width="80" height="54" /&gt;&lt;/a&gt;
     &lt;a href="http://host1.com/2.jpg" class="lightbox" title="9559" rel="dpimages"&gt;&lt;img src="//host2.com/9559.jpg" alt="9559" title="9559"  width="80" height="67" /&gt;&lt;/a&gt;
     &lt;a href="http://host1.com/3.jpg" class="lightbox" title="9560" rel="dpimages"&gt;&lt;img src="//host2.com/9560.jpg" alt="9560" title="9560"  width="78" height="80" /&gt;&lt;/a&gt;
     &lt;a href="http://host1.com/4.jpg" class="lightbox" title="9561" rel="dpimages"&gt;&lt;img src="//host2.com/9561.jpg" alt="9561" title="9561"  width="53" height="80" /&gt;&lt;/a&gt;
     &lt;a href="http://host1.com/5.jpg" class="lightbox" title="9562" rel="dpimages"&gt;&lt;img src="//host2.com/9562.jpg" alt="9562" title="9562"  width="52" height="80" /&gt;&lt;/a&gt;
     &lt;a href="http://host1.com/6.jpg" class="lightbox" title="9562" rel="dpimages"&gt;&lt;img src="//host2.com/9562.jpg" alt="9562" title="9562"  width="52" height="80" /&gt;&lt;/a&gt;
     &lt;a href="http://host1.com/7.jpg" class="lightbox" title="9562" rel="dpimages"&gt;&lt;img src="//host2.com/9562.jpg" alt="9562" title="9562"  width="52" height="80" /&gt;&lt;/a&gt;
     &lt;div class="clearing"&gt;&lt;/div&gt;
    &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How can I extract the URLs of the first <code>n</code> images like:</p>
  
  <pre><code>http://host1.com/1.jpg
  http://host1.com/2.jpg
  http://host1.com/3.jpg
  http://host1.com/4.jpg
  http://host1.com/5.jpg
  </code></pre>
  
  <p>with <code>imacros</code> and save to a <code>.csv</code> file?</p>