title: How to parse table in a text file?
body: <p>I'm trying to scrape this page for the table of the holdings at the bottom, to get the information in each column: <a href="https://www.sec.gov/Archives/edgar/data/1412093/000114036111027807/0001140361-11-027807.txt" rel="nofollow">https://www.sec.gov/Archives/edgar/data/1412093/000114036111027807/0001140361-11-027807.txt</a></p>
  
  <p>What I have so far is this:</p>
  
  <pre><code>from bs4 import BeautifulSoup
  import urllib2
  import datetime
  import sys
  
  def scrape(url):
      htmlfile = urllib2.urlopen(url)
      htmltext = htmlfile.read()
      bs = BeautifulSoup(htmltext)
      tables =bs.find_all('table')
      for table in tables:
          print table
  
  if __name__ == '__main__':
      url = 'https://www.sec.gov/Archives/edgar/data/1412093/000114036111027807/0001140361-11-027807.txt'
      scrape(url)
  </code></pre>
  
  <p>However, this only gets me the table, and I can't seem to further parse it going line by line.
  Any help with this would be appreciated, thanks!</p>