title: Parse HTML Table with Python BeautifulSoup
body: <p>I am attempting to use BeautifulSoup to parse an html table which I uploaded to <a href="http://pastie.org/8070879" rel="nofollow">http://pastie.org/8070879</a> in order to get the three columns (0 to 735, 0.50 to 1.0 and 0.5 to 0.0) as lists. To explain why, I will want the integers 0-735 to be keys and the decimal numbers to be values.</p>
  
  <p>From reading many of the other posts on SO, I have come up with the following which does not come close to creating the lists I want. All it does is display the text in the table as is seen here <a href="http://i1285.photobucket.com/albums/a592/TheNexulo/output_zps20c5afb8.png" rel="nofollow">http://i1285.photobucket.com/albums/a592/TheNexulo/output_zps20c5afb8.png</a></p>
  
  <pre><code>from bs4 import BeautifulSoup
  
  soup = BeautifulSoup(open("fide.html"))
  table = soup.find('table')
  
  rows = table.findAll('tr')
  
  for tr in rows:
    cols = tr.findAll('td')
    for td in cols:
       text = ''.join(td.find(text=True))
       print text + "|",
    print 
  </code></pre>
  
  <p>I'm new to Python and BeautifulSoup, so please be gentle with me! Thanks</p>