beautiful soup library question

Enigma Curry workbee at gmail.com
Fri Mar 10 23:28:12 EST 2006


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




More information about the Python-list mailing list