Re: beautiful soup library question

2006-03-10 Thread Enigma Curry
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

Re: beautiful soup library question

2006-03-10 Thread Erik Max Francis
[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

beautiful soup library question

2006-03-10 Thread meyerkp
Hi all, 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 get the string after the br's? br.content