title: Download website links having specific elements around
body: <p>I need to mirror recursively some site wallpaper images having a specific markup around, like:</p>
  
  <pre><code>&lt;div class="wb_more"&gt;
  Original Resolution: &lt;a href="//site.com/download/space_planet_sky_94434/4800x2700"&gt;4800x2700&lt;/a&gt;&lt;br&gt;
  Views: &lt;a href="/download/last"&gt;96661&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>but not others, like:</p>
  
  <pre><code>&lt;div class="wd_resolution"&gt;
  &lt;span class="wd_res_cat"&gt;Fullscreen&lt;/span&gt;
  &lt;span class="wd_res_cat_raz"&gt;&lt;a class="wb_res_select" href="//site.com/download/space_planet_sky_94434/1600x1200"&gt;1600x1200&lt;/a&gt;
  ...
  &lt;/span&gt;
  ...
  &lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Note, the URLs are the same, except for the resolutions, but the resolutions of the originals might vary, so only the markup around makes the difference, like preceeding the link with a text like <code>Original Resolution:</code>.</p>
  
  <p>Is there a solution for this using wget or httrack or some other tool?</p>
  
  <p>Thank you.</p>