Here's how I print each line after the '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
[EMAIL PROTECTED] wrote:
> I'm trying to extract some information from an html file using
> beautiful soup. The strings I want get are after br tags, eg:
>
>
> this info
> more info
> and more info
>
>
> I can navigate to the first br tag using find_next_sibling, but how do
> I ge