title: Parsing html tables with Beautifulsoup in Python
body: <p>I'm trying to parse tables from lots of html pages. Each tagret table has next structure:</p>
  
  <pre><code>&lt;table width="100%%" border="2" bordercolor="navy"&gt;
    &lt;tr bordercolor="#0000FF"&gt;
      &lt;td width="20%%" height="22" bgcolor="navy"&gt;&lt;font color="#FFFFFF"&gt;&lt;b&gt;Field1&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
      &lt;td width="20%%" height="22" bgcolor="navy"&gt;&lt;font color="#FFFFFF"&gt;&lt;b&gt;Field2&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
       &lt;td width="60%%" height="22" bgcolor="navy"&gt;&lt;font color="#FFFFFF"&gt;&lt;b&gt;Field3&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
    &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td width="12%"&gt;A1&lt;/td&gt;
      &lt;td width="32%"&gt;&lt;a href="../"&gt;A2&lt;/a&gt;&lt;/td&gt;
      &lt;td width="56%"&gt;A3&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td width="12%"&gt;B1&lt;/td&gt;
      &lt;td width="32%"&gt;&lt;a href="../"&gt;B2&lt;/a&gt;&lt;/td&gt;
      &lt;td width="56%"&gt;B3
  &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td width="12%"&gt;C1&lt;/td&gt;
      &lt;td width="32%"&gt;&lt;a href="../"&gt;C2&lt;/a&gt;&lt;/td&gt;
      &lt;td width="56%"&gt;C3&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td width="12%"&gt;D1&lt;/td&gt;
      &lt;td width="32%"&gt;&lt;a href="../"&gt;D2&lt;/a&gt;&lt;/td&gt;
      &lt;td width="56%"&gt;D3&lt;/td&gt;
    &lt;/tr&gt;
  
  &lt;/table&gt;
  </code></pre>
  
  <p>Number of rows varies from page to page, so parser should be able to work for any number of rows. I would like to collect info from each html page like</p>
  
  <pre><code>A1 A2 A3
  B1 B2 B3
  C1 C2 C3
  D1 D2 D3
  </code></pre>
  
  <p>How can I do that?</p>