Here's how I print each line after the <br>'s: import BeautifulSoup as Soup page=open("test.html").read() soup=Soup.BeautifulSoup(page) for br in soup.fetch('br'): print br.next
-- http://mail.python.org/mailman/listinfo/python-list
Here's how I print each line after the <br>'s: import BeautifulSoup as Soup page=open("test.html").read() soup=Soup.BeautifulSoup(page) for br in soup.fetch('br'): print br.next
-- http://mail.python.org/mailman/listinfo/python-list