HTML offline files get content
<p>I have really much offline html files and I need get from them name, adress etc. And create CSV. </p>

<p>I first try to do it witch batch - example:</p>

<pre><code>for /r %%i in (*) DO (
  findstr /o "name" %%i &gt;&gt; results.txt
  ECHO ; &gt;&gt; results.txt

  findstr /o "STREET" %%i &gt;&gt; results.txt
  ECHO ; &gt;&gt; results.txt

  etc

ECHO xxxendlinexxx &gt;&gt; results.txt                                       
)
</code></pre>

<p>It works, but this give me long file what need hard work with Regular expresion... I think there must be better way how to read TAG content in HTML.</p>

<p>I found Python HTML parser:</p>

<pre><code>from html.parser import HTMLParser
</code></pre>

<p>But I dont know hot to use for offline file and specific TAG (id="something"). I googling, watch tuts on youtube, but I dont find easy a understandable solution.</p>

<p>Can you help? Best with example:</p>

<ol>
<li>How open file  </li>
<li>How find content in specific tag</li>
<li>Save content to another file</li>
</ol>

<p>Thank you for help. </p>