title: Extract data from HTML table using Python
body: <p>I want to extract data from HTML table using Python script and save it as variables(that I can later use in same script after loading them in if they exist) into a separate file. Also I want the script to ignore the first row of table(Component, Status, Time / Error). I would prefer not to use external libraries. </p>
  
  <p>The output into a new file should be like so:</p>
  
  <pre><code>SAVE_DOCUMENT_STATUS = "OK"
  SAVE_DOCUMENT_TIME = "0.408"
  GET_DOCUMENT_STATUS = "OK"
  GET_DOCUMENT_TIME = "0.361"
  ...
  </code></pre>
  
  <p>And heres the input to the script:</p>
  
  <pre><code>&lt;table border=1&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;b&gt;Component&lt;/b&gt;&lt;/td&gt;
  &lt;td&gt;&lt;b&gt;Status&lt;/b&gt;&lt;/td&gt;
  &lt;td&gt;&lt;b&gt;Time / Error&lt;/b&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;SAVE_DOCUMENT&lt;/td&gt;&lt;td&gt;OK&lt;/td&gt;&lt;td&gt;0.408 s&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;GET_DOCUMENT&lt;/td&gt;&lt;td&gt;OK&lt;/td&gt;&lt;td&gt;0.361 s&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;DVK_SEND&lt;/td&gt;&lt;td&gt;OK&lt;/td&gt;&lt;td&gt;0.002 s&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;DVK_RECEIVE&lt;/td&gt;&lt;td&gt;OK&lt;/td&gt;&lt;td&gt;0.002 s&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;GET_USER_INFO&lt;/td&gt;&lt;td&gt;OK&lt;/td&gt;&lt;td&gt;0.135 s&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;NOTIFICATIONS&lt;/td&gt;&lt;td&gt;OK&lt;/td&gt;&lt;td&gt;0.002 s&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;ERROR_LOG&lt;/td&gt;&lt;td&gt;OK&lt;/td&gt;&lt;td&gt;0.001 s&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;SUMMARY_STATUS&lt;/td&gt;&lt;td&gt;OK&lt;/td&gt;&lt;td&gt;0.913 s&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I tried to do it in bash, but since I need to compare *_TIME variables to maximum time, then it fails, because they're float numbers.</p>