title: Read value from web page using python
body: <p>I am trying to read a value in a html page into a variable in a python script.  I have already figured out a way of downloading the page to a local file using urllib and could extract the value with a bash script but would like to try it in Python.</p>
  
  <pre><code>import urllib
  urllib.urlretrieve('http://url.com', 'page.htm')
  </code></pre>
  
  <p>The page has this in it:</p>
  
  <pre><code>&lt;div name="mainbody" style="font-size: x-large;margin:auto;width:33;"&gt;
  &lt;b&gt;&lt;a href="w.cgi?hsn=10543"&gt;Plateau (19:01)&lt;/a&gt;&lt;/b&gt;
  &lt;br/&gt; Wired: 17.4
  &lt;br/&gt;P10 Chard: 16.7
  &lt;br/&gt;P1 P. Gris: 17.1
  &lt;br/&gt;P20 Pinot Noir: 15.8-
  &lt;br/&gt;Soil Temp : Error
  &lt;br/&gt;Rainfall: 0.2&lt;br/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I need the 17.4 value from the Wired: line</p>
  
  <p>Any suggestions?</p>
  
  <p>Thanks</p>