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