title: Windows Batch / parse data from html web page
body: <p>Is it possible to parse data from web html page using windows batch?</p>
  
  <p>let's say I have a web page: www.domain.com/data/page/1
  Page source html:</p>
  
  <pre><code>...
  &lt;div&gt;&lt;a href="/post/view/664654"&gt; ....
  ....
  </code></pre>
  
  <p>In this case I would need get /post/view/664654 from web page.</p>
  
  <p>My idea is to loop through www.domain.com/data/page/1 ... # (to some given number) and extract all the /post/view's. Then I would have a list of links, and from each of those links I would extract href values (either images or videos).</p>
  
  <p>So far I was only successful in downloading image or video when I know exact link, using wget. But I don't know how (if possible at all) to parse html data.</p>
  
  <p><strong>edit</strong></p>
  
  <pre><code>&lt;body&gt;
  &lt;nav&gt;
      &lt;section&gt;links I dont need&lt;/section&gt;
  &lt;/nav&gt;
  &lt;article&gt;
      &lt;section&gt;links I need&lt;/section&gt;
  &lt;/article&gt;
  </code></pre>
  
  <p></p>